pub enum Output {
Send(Box<Message>),
SetTimer {
timer: Timer,
after: Duration,
},
ClearTimer(Timer),
ToTu(Box<TuEvent>),
Terminated(Reason),
}Expand description
Something the driver must do on the transaction’s behalf.
Order matters and is preserved: a Send always precedes the SetTimer that will
retransmit it, so a retransmission timer can never start before the thing it retransmits
has gone out.
Variants§
Send(Box<Message>)
Put this message on the wire.
SetTimer
Arrange for Timer to fire after this long.
ClearTimer(Timer)
Cancel a timer that has not fired.
ToTu(Box<TuEvent>)
Hand this to the transaction user.
Terminated(Reason)
The transaction is over; the layer above should drop it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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