Struct zeromq::PullSocket

source ·
pub struct PullSocket { /* private fields */ }

Trait Implementations§

source§

impl Socket for PullSocket

source§

fn with_options(options: SocketOptions) -> Self

source§

fn backend(&self) -> Arc<dyn MultiPeerBackend>

source§

fn binds(&mut self) -> &mut HashMap<Endpoint, AcceptStopHandle, RandomState>

source§

fn monitor(&mut self) -> Receiver<SocketEvent>

Creates and setups new socket monitor Read more
source§

fn new() -> Self

source§

fn bind<'life0, 'life1, 'async_trait>( &'life0 mut self, endpoint: &'life1 str ) -> Pin<Box<dyn Future<Output = ZmqResult<Endpoint>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Binds to the endpoint and starts a coroutine to accept new connections on it. Read more
source§

fn unbind<'life0, 'async_trait>( &'life0 mut self, endpoint: Endpoint ) -> Pin<Box<dyn Future<Output = ZmqResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unbinds the endpoint, blocking until the associated endpoint is no longer in use Read more
source§

fn unbind_all<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Vec<ZmqError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unbinds all bound endpoints, blocking until finished.
source§

fn connect<'life0, 'life1, 'async_trait>( &'life0 mut self, endpoint: &'life1 str ) -> Pin<Box<dyn Future<Output = ZmqResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Connects to the given endpoint.
source§

fn close<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Vec<ZmqError>> + Send + 'async_trait>>
where Self: 'async_trait,

Disconnects from the given endpoint, blocking until finished. Read more
source§

impl SocketRecv for PullSocket

source§

fn recv<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = ZmqResult<ZmqMessage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Auto Trait Implementations§

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, 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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V