pub struct AckSender<A = LocalAdapter>where
A: Adapter,{ /* private fields */ }Expand description
Re-exported public API. An Extractor to send an ack response corresponding to the current event. If the client sent a normal message without expecting an ack, the ack callback will do nothing.
It is generic over the Adapter type. If you plan to use it with another adapter than the default,
make sure to have a handler that is generic over the adapter type.
Implementations§
Trait Implementations§
Source§impl<A> FromMessageParts<A> for AckSender<A>where
A: Adapter,
impl<A> FromMessageParts<A> for AckSender<A>where
A: Adapter,
Source§type Error = Infallible
type Error = Infallible
The error type returned by the extractor
Auto Trait Implementations§
impl<A = LocalAdapter> !RefUnwindSafe for AckSender<A>
impl<A = LocalAdapter> !UnwindSafe for AckSender<A>
impl<A> Freeze for AckSender<A>
impl<A> Send for AckSender<A>
impl<A> Sync for AckSender<A>
impl<A> Unpin for AckSender<A>
impl<A> UnsafeUnpin for AckSender<A>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<A, T> FromMessage<A, ViaParts> for Twhere
T: FromMessageParts<A>,
A: Adapter,
impl<A, T> FromMessage<A, ViaParts> for Twhere
T: FromMessageParts<A>,
A: Adapter,
Source§type Error = <T as FromMessageParts<A>>::Error
type Error = <T as FromMessageParts<A>>::Error
The error type returned by the extractor