MarksBindingsContext

Trait MarksBindingsContext 

Source
pub trait MarksBindingsContext {
    // Required methods
    fn marks_to_keep_on_egress() -> &'static [MarkDomain];
    fn marks_to_set_on_ingress() -> &'static [MarkDomain];
}
Expand description

Defines how socket marks should be handled by the IP layer.

Required Methods§

Source

fn marks_to_keep_on_egress() -> &'static [MarkDomain]

Mark domains for marks that should be kept when an egress packet is passed from the IP layer to the device. For egress packets that are delivered locally through the loopback interface, these marks are passed to the ingress path and can be observed by ingress filter hooks.

Source

fn marks_to_set_on_ingress() -> &'static [MarkDomain]

Mark domains for marks that should be copied to ingress packets. If early demux results in a socket then these marks are copied from the socket to the packet and can be observed in LOCAL_INGRESS filter hook.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<TimerId, Event, State, FrameMeta> MarksBindingsContext for FakeBindingsCtx<TimerId, Event, State, FrameMeta>
where Event: Debug,

Implementors§

Source§

impl MarksBindingsContext for netstack3_core::testutil::FakeBindingsCtx