pub struct ArtificeConfig { /* private fields */ }
Expand description
used to build and configure the local host
Implementations§
Source§impl ArtificeConfig
impl ArtificeConfig
pub fn new( addr: Layer3SocketAddr, host: ArtificeHostData, broadcast: bool, ) -> Self
Sourcepub fn generate(addr: Layer3SocketAddr) -> Self
pub fn generate(addr: Layer3SocketAddr) -> Self
used to create new host, primarily designed for use by the installer crate
pub fn host_data(&self) -> &ArtificeHostData
pub fn broadcast(&self) -> bool
pub fn port(&self) -> u16
pub fn addr(&self) -> Layer3Addr
pub fn socket_addr(&self) -> Layer3SocketAddr
pub fn set_socket_addr(&mut self, addr: SocketAddr)
Trait Implementations§
Source§impl Clone for ArtificeConfig
impl Clone for ArtificeConfig
Source§fn clone(&self) -> ArtificeConfig
fn clone(&self) -> ArtificeConfig
Returns a copy 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 ArtificeConfig
impl Debug for ArtificeConfig
Source§impl<'de> Deserialize<'de> for ArtificeConfig
impl<'de> Deserialize<'de> for ArtificeConfig
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 Ord for ArtificeConfig
impl Ord for ArtificeConfig
Source§fn cmp(&self, other: &ArtificeConfig) -> Ordering
fn cmp(&self, other: &ArtificeConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ArtificeConfig
impl PartialEq for ArtificeConfig
Source§impl PartialOrd for ArtificeConfig
impl PartialOrd for ArtificeConfig
Source§impl Serialize for ArtificeConfig
impl Serialize for ArtificeConfig
impl Eq for ArtificeConfig
impl StructuralPartialEq for ArtificeConfig
Auto Trait Implementations§
impl Freeze for ArtificeConfig
impl RefUnwindSafe for ArtificeConfig
impl Send for ArtificeConfig
impl Sync for ArtificeConfig
impl Unpin for ArtificeConfig
impl UnwindSafe for ArtificeConfig
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