[][src]Trait zmq::Sendable

pub trait Sendable {
    fn send(self, socket: &Socket, flags: i32) -> Result<()>;
}

Sendable over a Socket.

A type can implement this trait there is an especially efficient implementation for sending it as a message over a zmq socket.

If the type needs to be directly passed to Socket::send(), but the overhead of allocating a Message instance is not an issue, Into<Message> should be implemented instead.

Required methods

fn send(self, socket: &Socket, flags: i32) -> Result<()>

Loading content...

Implementors

impl<T> Sendable for T where
    T: Into<Message>, 
[src]

Loading content...