pub struct Connection { /* private fields */ }Implementations§
Source§impl Connection
impl Connection
pub fn new(socket: TcpStream, token: Token) -> Result<Connection>
pub fn reader( &mut self, poll: &Poll, tx_out: &Sender<ServiceEvent>, ) -> Result<()>
pub fn writer(&mut self, poll: &Poll) -> Result<()>
pub fn register_insterest(&self, poll: &Poll)
pub fn reregister_insterest(&mut self, poll: &Poll)
pub fn send_message(&mut self, tx_out: &Sender<ServiceEvent>) -> Result<()>
pub fn recv_message(&mut self, poll: &Poll, message: Message) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin 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