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>
impl<'a, T> SocketBuilder<'a, T>
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> Freeze for SocketBuilder<'a, T>
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