pub enum WgpeerFlags {
RemoveMe = 1,
ReplaceAllowedips = 2,
UpdateOnly = 4,
}Available on crate feature
wireguard only.Expand description
Flags - defines an integer enumeration, with values for each entry occupying a bit, starting from bit 0, (e.g. 1, 2, 4, 8)
Variants§
Implementations§
Source§impl WgpeerFlags
impl WgpeerFlags
pub fn from_value(value: u64) -> Option<Self>
Trait Implementations§
Source§impl Clone for WgpeerFlags
impl Clone for WgpeerFlags
Source§fn clone(&self) -> WgpeerFlags
fn clone(&self) -> WgpeerFlags
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 WgpeerFlags
Auto Trait Implementations§
impl Freeze for WgpeerFlags
impl RefUnwindSafe for WgpeerFlags
impl Send for WgpeerFlags
impl Sync for WgpeerFlags
impl Unpin for WgpeerFlags
impl UnsafeUnpin for WgpeerFlags
impl UnwindSafe for WgpeerFlags
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