Struct async_zmq::SocketBuilder
source · pub struct SocketBuilder<'a, T> { /* private fields */ }
Expand description
ZMQ socket builder. It lets user to either bind or connect the socket of their choice.
Implementations§
source§impl<'a, T> SocketBuilder<'a, T>where
T: From<Socket>,
impl<'a, T> SocketBuilder<'a, T>where T: From<Socket>,
sourcepub fn get_context(&self) -> Option<&Context>
pub fn get_context(&self) -> Option<&Context>
Get the zmq context to share with
sourcepub fn with_context(self, context: &'a Context) -> Self
pub fn with_context(self, context: &'a Context) -> Self
Create the zmq socket with given context
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for SocketBuilder<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for SocketBuilder<'a, T>where T: Send,
impl<'a, T> Sync for SocketBuilder<'a, T>where T: Sync,
impl<'a, T> Unpin for SocketBuilder<'a, T>where T: Unpin,
impl<'a, T> UnwindSafe for SocketBuilder<'a, T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more