pub struct AsyncStompClient { /* private fields */ }Expand description
A proxy for a client which can subscribe to destinations, receive messages and send messages.
Note that a client must also implement destinations::Subscriber and destinations::Sender, which define the bulk of the API.
Trait Implementations§
Source§impl Clone for AsyncStompClient
impl Clone for AsyncStompClient
Source§fn clone(&self) -> AsyncStompClient
fn clone(&self) -> AsyncStompClient
Returns a duplicate 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 AsyncStompClient
impl Debug for AsyncStompClient
Source§impl Sender for AsyncStompClient
impl Sender for AsyncStompClient
fn send_callback( &self, _: Option<MessageId>, _: Result<MessageId, StomperError>, )
Source§impl Subscriber for AsyncStompClient
impl Subscriber for AsyncStompClient
fn subscribe_callback( &self, destination_id: DestinationId, client_subscription_id: Option<SubscriptionId>, subscribe_result: Result<SubscriptionId, StomperError>, )
fn unsubscribe_callback( &self, client_subscription_id: Option<SubscriptionId>, unsubscribe_result: Result<SubscriptionId, StomperError>, )
fn send( &self, _: SubscriptionId, client_subscription_id: Option<SubscriptionId>, message: OutboundMessage, ) -> Result<(), StomperError>
Auto Trait Implementations§
impl Freeze for AsyncStompClient
impl RefUnwindSafe for AsyncStompClient
impl Send for AsyncStompClient
impl Sync for AsyncStompClient
impl Unpin for AsyncStompClient
impl UnwindSafe for AsyncStompClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more