Trait TxMetadata

Source
pub trait TxMetadata:
    Default
    + Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn socket_cookie(&self) -> Option<SocketCookie>;
}
Expand description

A trait for the metadata associated with a TX frame.

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

Required Methods§

Returns SocketCookie for the socket associate with the packet. None is returned if the packet is not associated with a local socket or the socket has been destroyed.

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.

Implementors§