NetlinkContext

Trait NetlinkContext 

Source
pub trait NetlinkContext {
    type Creds: Clone + Send + Debug;
    type Sender<M: Clone + NetlinkSerializable + Send>: Sender<M>;
    type Receiver<M: Send + MessageWithPermission + NetlinkDeserializable<Error: Into<DecodeError>>>: Receiver<M, Self::Creds>;
    type AccessControl<'a>: AccessControl<Self::Creds>;
}
Expand description

A type capable of providing a concrete types used in Netlink.

Required Associated Types§

Source

type Creds: Clone + Send + Debug

The type used to represent process credentials.

Source

type Sender<M: Clone + NetlinkSerializable + Send>: Sender<M>

The type of Sender provided.

Source

type Receiver<M: Send + MessageWithPermission + NetlinkDeserializable<Error: Into<DecodeError>>>: Receiver<M, Self::Creds>

The type of Receiver provided.

Source

type AccessControl<'a>: AccessControl<Self::Creds>

The type of an object that validates access to netlink operations.

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§