Struct wireguard_uapi::get::DeviceBuilder [−][src]
Builder for Device
.
Implementations
impl DeviceBuilder
[src]
pub fn ifindex(&mut self, value: u32) -> &mut Self
[src]
pub fn ifname(&mut self, value: String) -> &mut Self
[src]
pub fn private_key(&mut self, value: Option<[u8; 32]>) -> &mut Self
[src]
pub fn public_key(&mut self, value: Option<[u8; 32]>) -> &mut Self
[src]
pub fn listen_port(&mut self, value: u16) -> &mut Self
[src]
pub fn fwmark(&mut self, value: u32) -> &mut Self
[src]
pub fn peers(&mut self, value: Vec<Peer>) -> &mut Self
[src]
pub fn build(&self) -> Result<Device, String>
[src]
Trait Implementations
impl Clone for DeviceBuilder
[src]
fn clone(&self) -> DeviceBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for DeviceBuilder
[src]
fn default() -> DeviceBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceBuilder
impl Send for DeviceBuilder
impl Sync for DeviceBuilder
impl Unpin for DeviceBuilder
impl UnwindSafe for DeviceBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,