pub struct BroadcastRouter;Expand description
Broadcast router.
Returns the transport addresses of all known peers (excluding the sender). Used for broadcast and peer-discovery announcements.
Implementations§
Trait Implementations§
Source§impl Debug for BroadcastRouter
impl Debug for BroadcastRouter
Source§impl Default for BroadcastRouter
impl Default for BroadcastRouter
Source§fn default() -> BroadcastRouter
fn default() -> BroadcastRouter
Returns the “default value” for a type. Read more
Source§impl Router for BroadcastRouter
impl Router for BroadcastRouter
Source§fn route<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 MessageEnvelope,
peers: &'life2 PeerTable,
) -> Pin<Box<dyn Future<Output = Result<Vec<TransportAddress>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn route<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 MessageEnvelope,
peers: &'life2 PeerTable,
) -> Pin<Box<dyn Future<Output = Result<Vec<TransportAddress>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Determine the transport addresses to deliver this message to.
Source§fn strategy(&self) -> RoutingStrategy
fn strategy(&self) -> RoutingStrategy
The routing strategy this router implements.
Auto Trait Implementations§
impl Freeze for BroadcastRouter
impl RefUnwindSafe for BroadcastRouter
impl Send for BroadcastRouter
impl Sync for BroadcastRouter
impl Unpin for BroadcastRouter
impl UnsafeUnpin for BroadcastRouter
impl UnwindSafe for BroadcastRouter
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