Sender

Trait Sender 

Source
pub trait Sender<M>:
    Clone
    + Send
    + Sync {
    // Required method
    fn send(&mut self, message: NetlinkMessage<M>, group: Option<ModernGroup>);
}
Expand description

A type capable of sending messages, M, from Netlink to a client.

Required Methods§

Source

fn send(&mut self, message: NetlinkMessage<M>, group: Option<ModernGroup>)

Sends the given message to the client.

If the message is a multicast, group will hold a Some; None for unicast messages.

Implementors must ensure this call does not block.

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§