pub struct Device {
pub ifindex: u32,
pub ifname: String,
pub private_key: Option<[u8; 32]>,
pub public_key: Option<[u8; 32]>,
pub listen_port: u16,
pub fwmark: u32,
pub peers: Vec<Peer>,
}
Fields§
§ifindex: u32
§ifname: String
§private_key: Option<[u8; 32]>
§public_key: Option<[u8; 32]>
§listen_port: u16
§fwmark: u32
§peers: Vec<Peer>
Trait Implementations§
Source§impl TryFrom<AttrHandle<'_, GenlBuffer<WgDeviceAttribute, Buffer>, Nlattr<WgDeviceAttribute, Buffer>>> for Device
impl TryFrom<AttrHandle<'_, GenlBuffer<WgDeviceAttribute, Buffer>, Nlattr<WgDeviceAttribute, Buffer>>> for Device
Source§type Error = ParseDeviceError
type Error = ParseDeviceError
The type returned in the event of a conversion error.
Source§fn try_from(
handle: AttrHandle<'_, GenlBuffer<WgDeviceAttribute, Buffer>, Nlattr<WgDeviceAttribute, Buffer>>,
) -> Result<Self, Self::Error>
fn try_from( handle: AttrHandle<'_, GenlBuffer<WgDeviceAttribute, Buffer>, Nlattr<WgDeviceAttribute, Buffer>>, ) -> Result<Self, Self::Error>
Performs the conversion.
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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