#[non_exhaustive]pub struct WireguardParsed {
pub iface_name: Option<String>,
pub iface_index: Option<u32>,
pub public_key: Option<String>,
pub private_key: Option<String>,
pub listen_port: Option<u16>,
pub fwmark: Option<u32>,
pub peers: Option<Vec<WireguardPeerParsed>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.iface_name: Option<String>§iface_index: Option<u32>§public_key: Option<String>Base64 encoded public key
private_key: Option<String>Base64 encoded private key, this property will be display as
(hidden) for Debug trait.
listen_port: Option<u16>§fwmark: Option<u32>§peers: Option<Vec<WireguardPeerParsed>>Implementations§
Source§impl WireguardParsed
impl WireguardParsed
Sourcepub fn build(
&self,
cmd: WireguardCmd,
) -> Result<WireguardMessage, WireguardError>
pub fn build( &self, cmd: WireguardCmd, ) -> Result<WireguardMessage, WireguardError>
Build WireguardMessage
Trait Implementations§
Source§impl Clone for WireguardParsed
impl Clone for WireguardParsed
Source§fn clone(&self) -> WireguardParsed
fn clone(&self) -> WireguardParsed
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 WireguardParsed
impl Debug for WireguardParsed
Source§impl Default for WireguardParsed
impl Default for WireguardParsed
Source§fn default() -> WireguardParsed
fn default() -> WireguardParsed
Returns the “default value” for a type. Read more
Source§impl From<WireguardMessage> for WireguardParsed
impl From<WireguardMessage> for WireguardParsed
Source§fn from(msg: WireguardMessage) -> Self
fn from(msg: WireguardMessage) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WireguardParsed
impl PartialEq for WireguardParsed
impl Eq for WireguardParsed
impl StructuralPartialEq for WireguardParsed
Auto Trait Implementations§
impl Freeze for WireguardParsed
impl RefUnwindSafe for WireguardParsed
impl Send for WireguardParsed
impl Sync for WireguardParsed
impl Unpin for WireguardParsed
impl UnwindSafe for WireguardParsed
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