pub struct Connection { /* private fields */ }
Implementations
sourceimpl Connection
impl Connection
pub fn with(
api_type: ZmqType,
remote: &ZmqSocketAddr,
local: Option<ZmqSocketAddr>,
identity: Option<impl AsRef<[u8]>>
) -> Result<Self, Error>
pub fn from_zmq_socket(api_type: ZmqType, socket: Socket) -> Self
pub fn set_identity(&mut self, identity: &impl AsRef<[u8]>) -> Result<(), Error>
Trait Implementations
sourceimpl Bipolar for Connection
impl Bipolar for Connection
Auto Trait Implementations
impl RefUnwindSafe for Connection
impl Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more