pub struct Connection {
context: Context,
socket: Socket,
}Expand description
Contains the context and socket for a ZMQ connection
Fields§
§context: Context§socket: SocketTrait Implementations§
Source§impl Server for Connection
impl Server for Connection
Source§fn new_broadcast(ip: &str) -> Connection
fn new_broadcast(ip: &str) -> Connection
Creates a new Dummy Server.
Source§impl SettingsChannel for Connection
impl SettingsChannel for Connection
fn new_router(ip: &str) -> Connection
fn new_dealer(ip: &str) -> Connection
fn send_settings(&mut self, dealer_id: &[u8], settings: SettingsPacket)
fn check_settings(&mut self) -> Option<Vec<Vec<u8>>>
Source§impl Subscriber for Connection
impl Subscriber for Connection
Source§fn new_subscription(ip: &str) -> Connection
fn new_subscription(ip: &str) -> Connection
Creates a new Subscriber.
Source§fn subscribe_check(&mut self) -> Option<ComPacket>
fn subscribe_check(&mut self) -> Option<ComPacket>
Checks for new packets on the connection.
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl !Sync for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
impl UnwindSafe for Connection
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