netstack3_device

Trait OriginTrackerContext

Source
pub trait OriginTrackerContext {
    // Required method
    fn origin_tracker(&mut self) -> OriginTracker;
}
Expand description

A trait abstracting a context containing an OriginTracker.

This allows API structs to extract origin from contexts when creating resources.

Required Methods§

Source

fn origin_tracker(&mut self) -> OriginTracker

Gets the origin tracker for this context.

Implementors§