Struct Config
#[non_exhaustive]pub struct Config {
pub ipv4: ConfigV4,
pub ipv6: ConfigV6,
}
Expand description
Network stack configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.ipv4: ConfigV4
Available on crate feature
proto-ipv4
only.IPv4 configuration
ipv6: ConfigV6
Available on crate feature
proto-ipv6
only.IPv6 configuration
Implementations§
§impl Config
impl Config
pub const fn ipv4_static(config: StaticConfigV4) -> Config
Available on crate feature proto-ipv4
only.
pub const fn ipv4_static(config: StaticConfigV4) -> Config
proto-ipv4
only.IPv4 configuration with static addressing.
pub const fn ipv6_static(config: StaticConfigV6) -> Config
Available on crate feature proto-ipv6
only.
pub const fn ipv6_static(config: StaticConfigV6) -> Config
proto-ipv6
only.IPv6 configuration with static addressing.
pub const fn dhcpv4(config: DhcpConfig) -> Config
Available on crate feature dhcpv4
only.
pub const fn dhcpv4(config: DhcpConfig) -> Config
dhcpv4
only.Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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