Enum aether_lib::peer::Connection
source · [−]pub enum Connection {
Init(Initialized),
Handshake,
Connected(Box<Peer>),
Failed(Failure),
}
Expand description
Enumeration representing different states of a connection
Variants
Init(Initialized)
Initialized state - connection has been initialized and is waiting to receive other peer’s public identity
Handshake
Handshake state - handshake with the other peer is in progress
Connected(Box<Peer>)
Connected state - a connection to the other peer has been established
Failed(Failure)
Failed state - a connection to the other peer had failed and would be retried
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more