pub enum DelPeerReason {
Teardown = 0,
Userspace = 1,
Expired = 2,
TransportError = 3,
TransportDisconnect = 4,
}Available on crate feature
ovpn only.Expand description
Enum - defines an integer enumeration, with values for each entry incrementing by 1, (e.g. 0, 1, 2, 3)
Variants§
Implementations§
Source§impl DelPeerReason
impl DelPeerReason
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for DelPeerReason
impl Clone for DelPeerReason
Source§fn clone(&self) -> DelPeerReason
fn clone(&self) -> DelPeerReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DelPeerReason
Auto Trait Implementations§
impl Freeze for DelPeerReason
impl RefUnwindSafe for DelPeerReason
impl Send for DelPeerReason
impl Sync for DelPeerReason
impl Unpin for DelPeerReason
impl UnsafeUnpin for DelPeerReason
impl UnwindSafe for DelPeerReason
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