Enum nakamoto_net::Io
source · pub enum Io<M, E, D, Id: PeerId = SocketAddr> {
Write(Id, M),
Connect(Id),
Disconnect(Id, D),
SetTimer(LocalDuration),
Event(E),
}
Expand description
Output of a state transition of the state machine.
Variants
Write(Id, M)
There are some bytes ready to be sent to a peer.
Connect(Id)
Connect to a peer.
Disconnect(Id, D)
Disconnect from a peer.
SetTimer(LocalDuration)
Ask for a wakeup in a specified amount of time.
Event(E)
Emit an event.
Trait Implementations
Auto Trait Implementations
impl<M, E, D, Id> RefUnwindSafe for Io<M, E, D, Id>where
D: RefUnwindSafe,
E: RefUnwindSafe,
Id: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, E, D, Id> Send for Io<M, E, D, Id>where
D: Send,
E: Send,
Id: Send,
M: Send,
impl<M, E, D, Id> Sync for Io<M, E, D, Id>where
D: Sync,
E: Sync,
Id: Sync,
M: Sync,
impl<M, E, D, Id> Unpin for Io<M, E, D, Id>where
D: Unpin,
E: Unpin,
Id: Unpin,
M: Unpin,
impl<M, E, D, Id> UnwindSafe for Io<M, E, D, Id>where
D: UnwindSafe,
E: UnwindSafe,
Id: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more