pub struct SendingStateHandle { /* private fields */ }Expand description
When a message is sent, it is sent asynchronously over a period. This handle allows to get to know if the message was really properly sent in the end or if something went wrong and what, the information is not available immediately.
Implementations§
Source§impl SendingStateHandle
impl SendingStateHandle
Sourcepub fn get_state(self) -> SendingState
pub fn get_state(self) -> SendingState
Has the message finished being sent? If yes, was is successfully sent? The returned sending state answers these questions, and if the answer is that the message is still being sent then it gives back this handle to ask again later.
Auto Trait Implementations§
impl Freeze for SendingStateHandle
impl !RefUnwindSafe for SendingStateHandle
impl Send for SendingStateHandle
impl Sync for SendingStateHandle
impl Unpin for SendingStateHandle
impl !UnwindSafe for SendingStateHandle
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