pub enum TunnelState {
Disconnected,
Connecting,
Connected,
Failed(String),
Disconnecting,
}
Expand description
Current state of a tunnel connection
Variants§
Disconnected
Tunnel is not yet established
Connecting
Tunnel is in the process of being established
Connected
Tunnel is established and ready for use
Failed(String)
Tunnel has failed and cannot be used
Disconnecting
Tunnel is being torn down
Trait Implementations§
Source§impl Clone for TunnelState
impl Clone for TunnelState
Source§fn clone(&self) -> TunnelState
fn clone(&self) -> TunnelState
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TunnelState
impl Debug for TunnelState
Source§impl PartialEq for TunnelState
impl PartialEq for TunnelState
impl StructuralPartialEq for TunnelState
Auto Trait Implementations§
impl Freeze for TunnelState
impl RefUnwindSafe for TunnelState
impl Send for TunnelState
impl Sync for TunnelState
impl Unpin for TunnelState
impl UnwindSafe for TunnelState
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