Struct zenoh_config::RouterRoutingConf
source · pub struct RouterRoutingConf { /* private fields */ }
Implementations§
source§impl RouterRoutingConf
impl RouterRoutingConf
pub fn validate(&self) -> bool
pub fn new(peers_failover_brokering: Option<bool>) -> Result<Self, Self>
sourcepub fn peers_failover_brokering(&self) -> &Option<bool>
pub fn peers_failover_brokering(&self) -> &Option<bool>
When set to true a router will forward data between two peers directly connected to it if it detects that those peers are not connected to each other. The failover brokering only works if gossip discovery is enabled.
sourcepub fn set_peers_failover_brokering(
&mut self,
value: Option<bool>
) -> Result<Option<bool>, Option<bool>>
pub fn set_peers_failover_brokering( &mut self, value: Option<bool> ) -> Result<Option<bool>, Option<bool>>
When set to true a router will forward data between two peers directly connected to it if it detects that those peers are not connected to each other. The failover brokering only works if gossip discovery is enabled.
source§impl RouterRoutingConf
impl RouterRoutingConf
pub fn from_deserializer<'d, D: Deserializer<'d>>(
d: D
) -> Result<Self, Result<Self, D::Error>>where
Self: Deserialize<'d>,
Trait Implementations§
source§impl Clone for RouterRoutingConf
impl Clone for RouterRoutingConf
source§fn clone(&self) -> RouterRoutingConf
fn clone(&self) -> RouterRoutingConf
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RouterRoutingConf
impl Debug for RouterRoutingConf
source§impl Default for RouterRoutingConf
impl Default for RouterRoutingConf
source§fn default() -> RouterRoutingConf
fn default() -> RouterRoutingConf
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RouterRoutingConfwhere
RouterRoutingConf: Default,
impl<'de> Deserialize<'de> for RouterRoutingConfwhere
RouterRoutingConf: Default,
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
source§impl Serialize for RouterRoutingConf
impl Serialize for RouterRoutingConf
source§impl ValidatedMap for RouterRoutingConf
impl ValidatedMap for RouterRoutingConf
fn insert<'d, D: Deserializer<'d>>( &mut self, key: &str, value: D ) -> Result<(), InsertionError>
fn get<'a>(&'a self, key: &str) -> Result<&dyn Any, GetError>
fn get_json(&self, key: &str) -> Result<String, GetError>
type Keys = Vec<String>
fn keys(&self) -> Self::Keys
fn insert_json5(&mut self, key: &str, value: &str) -> Result<(), InsertionError>
source§impl<'a> ValidatedMapAssociatedTypes<'a> for RouterRoutingConf
impl<'a> ValidatedMapAssociatedTypes<'a> for RouterRoutingConf
Auto Trait Implementations§
impl Freeze for RouterRoutingConf
impl RefUnwindSafe for RouterRoutingConf
impl Send for RouterRoutingConf
impl Sync for RouterRoutingConf
impl Unpin for RouterRoutingConf
impl UnwindSafe for RouterRoutingConf
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