Struct netstack3_core::StackStateBuilder
source · pub struct StackStateBuilder { /* private fields */ }
Expand description
A builder for StackState
.
Implementations§
source§impl StackStateBuilder
impl StackStateBuilder
sourcepub fn transport_builder(&mut self) -> &mut TransportStateBuilder
pub fn transport_builder(&mut self) -> &mut TransportStateBuilder
Get the builder for the transport layer state.
sourcepub fn ipv4_builder(&mut self) -> &mut Ipv4StateBuilder
pub fn ipv4_builder(&mut self) -> &mut Ipv4StateBuilder
Get the builder for the IPv4 state.
sourcepub fn ipv6_builder(&mut self) -> &mut Ipv6StateBuilder
pub fn ipv6_builder(&mut self) -> &mut Ipv6StateBuilder
Get the builder for the IPv6 state.
sourcepub fn build_with_ctx<C: NonSyncContext>(self, ctx: &mut C) -> StackState<C>
pub fn build_with_ctx<C: NonSyncContext>(self, ctx: &mut C) -> StackState<C>
Consume this builder and produce a StackState
.
Trait Implementations§
source§impl Clone for StackStateBuilder
impl Clone for StackStateBuilder
source§fn clone(&self) -> StackStateBuilder
fn clone(&self) -> StackStateBuilder
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 Default for StackStateBuilder
impl Default for StackStateBuilder
source§fn default() -> StackStateBuilder
fn default() -> StackStateBuilder
Returns the “default value” for a type. Read more