Enum AckCompletion
pub enum AckCompletion {
User(Sender<Result<Vec<ReasonCode>, Error>>),
Internal,
}Expand description
Where an in-flight SUBSCRIBE/UNSUBSCRIBE’s outcome goes once the SUBACK/UNSUBACK arrives (or the operation is dropped or superseded).
Variants§
User(Sender<Result<Vec<ReasonCode>, Error>>)
A user command is waiting on this operation.
Internal
An internally replayed operation (e.g. re-subscribing after the
broker reports no session) that no user future is watching. Tracked
the same as User for ack-timeout purposes, just
resolved into nothing on completion.
Implementations§
§impl AckCompletion
impl AckCompletion
pub fn resolve(self, result: Result<Vec<ReasonCode>, Error>)
pub fn resolve(self, result: Result<Vec<ReasonCode>, Error>)
Resolves a User completion; a no-op for Internal.
Auto Trait Implementations§
impl Freeze for AckCompletion
impl !RefUnwindSafe for AckCompletion
impl Send for AckCompletion
impl Sync for AckCompletion
impl Unpin for AckCompletion
impl !UnwindSafe for AckCompletion
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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