pub struct DeviceBuilder { /* private fields */ }
Expand description
Builder for Device
.
Implementations§
Source§impl DeviceBuilder
impl DeviceBuilder
pub fn ifindex(&mut self, value: u32) -> &mut Self
pub fn ifname(&mut self, value: String) -> &mut Self
pub fn private_key(&mut self, value: Option<[u8; 32]>) -> &mut Self
pub fn public_key(&mut self, value: Option<[u8; 32]>) -> &mut Self
pub fn listen_port(&mut self, value: u16) -> &mut Self
pub fn fwmark(&mut self, value: u32) -> &mut Self
pub fn peers(&mut self, value: Vec<Peer>) -> &mut Self
Trait Implementations§
Source§impl Clone for DeviceBuilder
impl Clone for DeviceBuilder
Source§fn clone(&self) -> DeviceBuilder
fn clone(&self) -> DeviceBuilder
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 moreAuto Trait Implementations§
impl Freeze for DeviceBuilder
impl RefUnwindSafe for DeviceBuilder
impl Send for DeviceBuilder
impl Sync for DeviceBuilder
impl Unpin for DeviceBuilder
impl UnwindSafe for DeviceBuilder
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