Trait capsules::net::sixlowpan_compression::ContextStore
[−]
[src]
pub trait ContextStore { fn get_context_from_addr(&self, ip_addr: IPAddr) -> Option<Context>; fn get_context_from_id(&self, ctx_id: u8) -> Option<Context>; fn get_context_from_prefix(
&self,
prefix: &[u8],
prefix_len: u8
) -> Option<Context>; fn get_context_0(&self) -> Context { ... } }
LoWPAN encoding requires being able to look up the existence of contexts, which are essentially IPv6 address prefixes. Any implementation must ensure that context 0 is always available and contains the mesh-local prefix.
Required Methods
fn get_context_from_addr(&self, ip_addr: IPAddr) -> Option<Context>
fn get_context_from_id(&self, ctx_id: u8) -> Option<Context>
fn get_context_from_prefix(
&self,
prefix: &[u8],
prefix_len: u8
) -> Option<Context>
&self,
prefix: &[u8],
prefix_len: u8
) -> Option<Context>
Provided Methods
fn get_context_0(&self) -> Context
Implementors
impl ContextStore for Context