pub struct Server { /* private fields */ }Expand description
Representation of the connection to the remote server.
Implementations§
Source§impl Server
impl Server
Sourcepub fn run(&mut self)
pub fn run(&mut self)
This is the “main event loop” of the library which starts by setting up the socket as
non-blocking before entering a loop where it looks for incoming commands on msg_r
which need to be dealt with. Secondly it looks for any ICB traffic that was received.
pub fn connect(&mut self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
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