pub enum Output<V> {
SendSubscribe {
id: SubscriptionId,
request: Box<Request>,
target: Peer,
},
RespondNotify {
transaction: u64,
status: u16,
retry_after: Option<Duration>,
},
Deliver {
id: SubscriptionId,
metadata: Option<NotificationMeta>,
value: V,
},
ArmTimer {
id: SubscriptionId,
timer: Timer,
generation: u64,
after: Duration,
},
CancelTimer {
id: SubscriptionId,
timer: Timer,
generation: u64,
},
StateChanged {
id: SubscriptionId,
change: StateChange,
},
Stopped,
}Expand description
One pure action for the I/O-facing driver.
Variants§
SendSubscribe
Send a complete SUBSCRIBE through a real client transaction.
Fields
§
id: SubscriptionIdLogical owner.
RespondNotify
Answer an inbound NOTIFY server transaction.
Fields
Deliver
Deliver one parsed package value.
Fields
§
id: SubscriptionIdLogical owner.
§
metadata: Option<NotificationMeta>Framework metadata; absent only for the initial neutral value.
§
value: VPackage value.
ArmTimer
Arm or replace one timer generation.
Fields
§
id: SubscriptionIdLogical owner.
CancelTimer
Cancel one timer generation.
Fields
§
id: SubscriptionIdLogical owner.
StateChanged
Surface a typed state fact.
Stopped
Shutdown released every owned resource.
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Output<V>where
V: Freeze,
impl<V> RefUnwindSafe for Output<V>where
V: RefUnwindSafe,
impl<V> Send for Output<V>where
V: Send,
impl<V> Sync for Output<V>where
V: Sync,
impl<V> Unpin for Output<V>where
V: Unpin,
impl<V> UnsafeUnpin for Output<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for Output<V>where
V: UnwindSafe,
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