pub struct Routing {
pub type: Option<OptionalString>,
pub accelerated_dht_client: Option<Flag>,
pub loopback_addresses_on_lan_dht: Option<Flag>,
pub ignore_providers: Vec<String>,
pub delegated_routers: Vec<String>,
pub routers: Option<HashMap<String, RouterConfig>>,
pub methods: Option<HashMap<String, MethodConfig>>,
}Expand description
Routing configuration section
Fields§
§type: Option<OptionalString>Routing type: “auto”, “autoclient”, “dht”, “dhtclient”, “dhtserver”, “none”, “custom”
accelerated_dht_client: Option<Flag>Enable accelerated DHT client
loopback_addresses_on_lan_dht: Option<Flag>Allow loopback addresses on LAN DHT
ignore_providers: Vec<String>Provider peer IDs to ignore
delegated_routers: Vec<String>Delegated router URLs
routers: Option<HashMap<String, RouterConfig>>Custom routers configuration
methods: Option<HashMap<String, MethodConfig>>Method routing configuration
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Routing
impl<'de> Deserialize<'de> for Routing
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Routing
impl RefUnwindSafe for Routing
impl Send for Routing
impl Sync for Routing
impl Unpin for Routing
impl UnwindSafe for Routing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more