Trait netstack3_base::BuildableCoreContext

source ·
pub trait BuildableCoreContext<BC> {
    type Builder;

    // Required method
    fn build(bindings_ctx: &mut BC, builder: Self::Builder) -> Self;
}
Expand description

A core context that can be created from some builder type.

This allows CtxPair to define its construction methods away from where core contexts are actually defined.

Required Associated Types§

source

type Builder

The builder type that can build this core context.

Required Methods§

source

fn build(bindings_ctx: &mut BC, builder: Self::Builder) -> Self

Consumes this builder and returns the context.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<O, BC> BuildableCoreContext<BC> for O
where O: Default,

§

type Builder = ()