pub enum Status {
Initialized,
Disconnecting,
Disconnected,
Connecting(String),
Connected,
Error(OpenconnectError),
}
Expand description
Describe the connection status of the client
Variants§
Initialized
The client is initialized
Disconnecting
The client is disconnecting to the VPN server
Disconnected
The client is disconnected from the VPN server and command pipe is closed
Connecting(String)
The client is connecting to the VPN server, with several stages described in the string
Connected
The client is connected to the VPN server and the main loop is running
Error(OpenconnectError)
The client is in an error state
Trait Implementations§
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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