pub struct AsyncDestinations<D: DestinationType> { /* private fields */ }
Implementations§
source§impl<D: DestinationType> AsyncDestinations<D>
impl<D: DestinationType> AsyncDestinations<D>
pub async fn start( destination_factory: Arc<dyn AsyncFactory<DestinationId, D>> ) -> AsyncDestinations<D>
Trait Implementations§
source§impl<D: Clone + DestinationType> Clone for AsyncDestinations<D>
impl<D: Clone + DestinationType> Clone for AsyncDestinations<D>
source§fn clone(&self) -> AsyncDestinations<D>
fn clone(&self) -> AsyncDestinations<D>
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<D: DestinationType> Destinations for AsyncDestinations<D>
impl<D: DestinationType> Destinations for AsyncDestinations<D>
type Client = <D as Destination>::Client
fn subscribe<S: Subscriber + 'static, E: Deref<Target = S> + Clone + Send + 'static>( &self, destination: DestinationId, subscriber_sub_id: Option<SubscriptionId>, subscriber: E, client: &Self::Client )
source§fn send<S: Sender + 'static, E: Deref<Target = S> + Clone + Send + 'static>(
&self,
destination: DestinationId,
message: InboundMessage,
sender: E,
client: &Self::Client
)
fn send<S: Sender + 'static, E: Deref<Target = S> + Clone + Send + 'static>( &self, destination: DestinationId, message: InboundMessage, sender: E, client: &Self::Client )
Send a message to this destination and, by implication, all clients subscribed to it
fn unsubscribe<S: Subscriber + 'static, E: Deref<Target = S> + Clone + Send + 'static>( &self, destination: DestinationId, subscription: SubscriptionId, subscriber: E, client: &Self::Client )
Auto Trait Implementations§
impl<D> !RefUnwindSafe for AsyncDestinations<D>
impl<D> Send for AsyncDestinations<D>
impl<D> !Sync for AsyncDestinations<D>
impl<D> Unpin for AsyncDestinations<D>
impl<D> !UnwindSafe for AsyncDestinations<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