Struct Dealer

Source
pub struct Dealer { /* private fields */ }
Expand description

The DEALER SocketType wrapper type.

Dealer implements StreamSocket and SinkSocket, and has an associated controlled variant.

Trait Implementations§

Source§

impl Debug for Dealer

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<(Socket, PollEvented<ZmqFile>)> for Dealer

Source§

fn from(inner: (Socket, EventedFile)) -> Self

Converts to this type from the input type.
Source§

impl From<Socket> for Dealer

Source§

fn from(inner: Socket) -> Self

Converts to this type from the input type.
Source§

impl IntoInnerSocket for Dealer

Source§

type Socket = Socket

Source§

fn socket(self) -> Self::Socket

Any type implementing IntoInnerSocket must have a way of returning an InnerSocket.
Source§

fn kind() -> SocketType

Source§

impl SinkSocket for Dealer

Source§

fn send( self, multipart: Multipart, ) -> <Self::Socket as InnerSocket<Self>>::Request

Send a single multipart message to the socket. Read more
Source§

fn sink(self, buffer_size: usize) -> <Self::Socket as InnerSocket<Self>>::Sink

Send a stream of multipart messages to the socket. Read more
Source§

impl StreamSocket for Dealer

Source§

fn recv(self) -> <Self::Socket as InnerSocket<Self>>::Response

Receive a single multipart message from the socket. Read more
Source§

fn stream(self) -> <Self::Socket as InnerSocket<Self>>::Stream

Receive a stream of multipart messages from the socket. Read more
Source§

impl UnPair for Dealer

Auto Trait Implementations§

§

impl !Freeze for Dealer

§

impl !RefUnwindSafe for Dealer

§

impl Send for Dealer

§

impl !Sync for Dealer

§

impl Unpin for Dealer

§

impl !UnwindSafe for Dealer

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> HasBuilder for T
where T: IntoInnerSocket,

Source§

fn builder(ctx: Arc<Context>) -> SocketBuilder<'static, Self>
where Self: Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> SinkStreamSocket for T

Source§

fn sink_stream( self, buffer_size: usize, ) -> <<T as IntoInnerSocket>::Socket as InnerSocket<T>>::SinkStream

Retrieve a structure that implements both Sync and Stream. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.