#[non_exhaustive]pub enum WireguardCmd {
GetDevice,
SetDevice,
Other(u8),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for WireguardCmd
impl Clone for WireguardCmd
Source§fn clone(&self) -> WireguardCmd
fn clone(&self) -> WireguardCmd
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 WireguardCmd
impl Debug for WireguardCmd
Source§impl From<u8> for WireguardCmd
impl From<u8> for WireguardCmd
Source§fn from(value: u8) -> WireguardCmd
fn from(value: u8) -> WireguardCmd
Converts to this type from the input type.
Source§impl PartialEq for WireguardCmd
impl PartialEq for WireguardCmd
impl Copy for WireguardCmd
impl Eq for WireguardCmd
impl StructuralPartialEq for WireguardCmd
Auto Trait Implementations§
impl Freeze for WireguardCmd
impl RefUnwindSafe for WireguardCmd
impl Send for WireguardCmd
impl Sync for WireguardCmd
impl Unpin for WireguardCmd
impl UnwindSafe for WireguardCmd
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