Trait TxMetadataBindingsTypes

Source
pub trait TxMetadataBindingsTypes {
    type TxMetadata: Default + Debug + Send + Sync + 'static;
}
Expand description

A trait abstracting TX frame metadata when traversing the stack.

This trait allows for stack integration crate to define a single concrete enumeration for all the types of transport metadata that a socket can generate. Metadata is carried with all TX frames until they hit the device layer.

NOTE: This trait is implemented by bindings. Although the tx metadata never really leaves core, abstraction over bindings types are substantially more common so delegating this implementation to bindings avoids type parameter explosion.

Required Associated Types§

Source

type TxMetadata: Default + Debug + Send + Sync + 'static

The metadata associated with a TX frame.

The Default impl yields the default, i.e. unspecified, metadata instance.

Implementors§