pub struct AddressRouter<A, D> { /* private fields */ }Expand description
A simple shared routing table for one typed message protocol.
Trait Implementations§
Source§impl<A, D> Clone for AddressRouter<A, D>
impl<A, D> Clone for AddressRouter<A, D>
Source§fn clone(&self) -> AddressRouter<A, D>
fn clone(&self) -> AddressRouter<A, D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A, D> Default for AddressRouter<A, D>
impl<A, D> Default for AddressRouter<A, D>
Source§fn default() -> AddressRouter<A, D>
fn default() -> AddressRouter<A, D>
Returns the “default value” for a type. Read more
Source§impl<A, M, D> DeliveryRouter<A, M> for AddressRouter<A, D>
impl<A, M, D> DeliveryRouter<A, M> for AddressRouter<A, D>
Source§type Error = RoutingError<A, M, <D as DeliveryEndpoint<A, M>>::Error>
type Error = RoutingError<A, M, <D as DeliveryEndpoint<A, M>>::Error>
Delivery failure.
Source§async fn deliver(
&self,
from: A,
delivery: Delivery<A, M>,
) -> Result<(), <AddressRouter<A, D> as DeliveryRouter<A, M>>::Error>
async fn deliver( &self, from: A, delivery: Delivery<A, M>, ) -> Result<(), <AddressRouter<A, D> as DeliveryRouter<A, M>>::Error>
Deliver
delivery on behalf of from.Source§impl<A, M, D> EndpointRegistry<A, M, D> for AddressRouter<A, D>
impl<A, M, D> EndpointRegistry<A, M, D> for AddressRouter<A, D>
Source§type Error = AddressInUse<A>
type Error = AddressInUse<A>
Registration failure.
Source§type Registration = Lease<A, D>
type Registration = Lease<A, D>
Ownership token that keeps the exact registration generation live.
Source§fn register(
&self,
address: A,
endpoint: D,
) -> Result<<AddressRouter<A, D> as EndpointRegistry<A, M, D>>::Registration, <AddressRouter<A, D> as EndpointRegistry<A, M, D>>::Error>
fn register( &self, address: A, endpoint: D, ) -> Result<<AddressRouter<A, D> as EndpointRegistry<A, M, D>>::Registration, <AddressRouter<A, D> as EndpointRegistry<A, M, D>>::Error>
Auto Trait Implementations§
impl<A, D> !RefUnwindSafe for AddressRouter<A, D>
impl<A, D> !UnwindSafe for AddressRouter<A, D>
impl<A, D> Freeze for AddressRouter<A, D>
impl<A, D> Send for AddressRouter<A, D>
impl<A, D> Sync for AddressRouter<A, D>
impl<A, D> Unpin for AddressRouter<A, D>
impl<A, D> UnsafeUnpin for AddressRouter<A, D>
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