Trait tmq_zmq::Sendable[][src]

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

Implementors