pub struct RwhodConfig {
pub enable: bool,
pub interfaces: Option<Vec<String>>,
pub broadcast_addresses: Option<Vec<SocketAddrV4>>,
}Fields§
§enable: boolEnable or disable the rwhod server functionality.
interfaces: Option<Vec<String>>Network interfaces to listen on (e.g., [“eth0”, “wlan0”]).
If left as None, the server will automatically determine relevant interfaces.
Note that if broadcast_addresses is specified, this field is ignored.
broadcast_addresses: Option<Vec<SocketAddrV4>>Broadcast addresses to send rwhod packets to.
If left as None, the server will automatically determine broadcast addresses for the selected interfaces.
Trait Implementations§
Source§impl Clone for RwhodConfig
impl Clone for RwhodConfig
Source§fn clone(&self) -> RwhodConfig
fn clone(&self) -> RwhodConfig
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 RwhodConfig
impl Debug for RwhodConfig
Source§impl<'de> Deserialize<'de> for RwhodConfig
impl<'de> Deserialize<'de> for RwhodConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RwhodConfig
impl PartialEq for RwhodConfig
Source§impl Serialize for RwhodConfig
impl Serialize for RwhodConfig
impl Eq for RwhodConfig
impl StructuralPartialEq for RwhodConfig
Auto Trait Implementations§
impl Freeze for RwhodConfig
impl RefUnwindSafe for RwhodConfig
impl Send for RwhodConfig
impl Sync for RwhodConfig
impl Unpin for RwhodConfig
impl UnwindSafe for RwhodConfig
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