pub enum TunnelState {
Stopped,
Connecting,
Connected,
Reconnecting,
Failed,
}Expand description
Current state of the tunnel.
Variants§
Stopped
Tunnel is stopped.
Connecting
Tunnel is connecting.
Connected
Tunnel is active and passing traffic.
Reconnecting
Tunnel lost connection and is attempting to reconnect.
Failed
Tunnel has permanently failed.
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§fn clone_from(&mut self, source: &Self)
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 UnsafeUnpin 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