pub struct SetInterface {
pub listen_port: Option<u16>,
pub public_key: Option<[u8; 32]>,
pub private_key: Option<[u8; 32]>,
pub peers: Vec<SetPeer>,
}
Expand description
The data required when setting the config for an interface
Fields§
§listen_port: Option<u16>
The port this interface should listen on.
The default 51820 is used if this is set to None
public_key: Option<[u8; 32]>
The public key of this interface.
If this is None
, the public key is generated from the private key
private_key: Option<[u8; 32]>
The private key of this interface
peers: Vec<SetPeer>
The peers that this interface is allowed to communicate with
Auto Trait Implementations§
impl Freeze for SetInterface
impl RefUnwindSafe for SetInterface
impl Send for SetInterface
impl Sync for SetInterface
impl Unpin for SetInterface
impl UnwindSafe for SetInterface
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