pub enum ConnectionState<C, B, A> {
Active {
channel: C,
},
Inactive {
addr: A,
backoff: B,
},
}Expand description
Abstraction to represent the state of a connection.
Cis the channel type, which is used to send and receive generic messages.Bis the backoff type, used to control the backoff state for inactive connections.Ais the address type, used to represent the address of the connection.
Variants§
Active
Fields
§
channel: CChannel to control the underlying connection. This is used to send and receive any kind of message in any direction.
Inactive
Implementations§
Source§impl<C, B, A> ConnectionState<C, B, A>
impl<C, B, A> ConnectionState<C, B, A>
Auto Trait Implementations§
impl<C, B, A> Freeze for ConnectionState<C, B, A>
impl<C, B, A> RefUnwindSafe for ConnectionState<C, B, A>
impl<C, B, A> Send for ConnectionState<C, B, A>
impl<C, B, A> Sync for ConnectionState<C, B, A>
impl<C, B, A> Unpin for ConnectionState<C, B, A>
impl<C, B, A> UnsafeUnpin for ConnectionState<C, B, A>
impl<C, B, A> UnwindSafe for ConnectionState<C, B, A>
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