pub struct Connection { /* private fields */ }Expand description
Handing connection timeout, etc The only events that this entity cares about is when packets are recevied from the remote, and when packets are sent from the remote
Implementations§
Source§impl Connection
impl Connection
pub fn new(conn: ConnectionSettings) -> Self
pub fn on_packet(&mut self, now: Instant)
pub fn on_send(&mut self, now: Instant)
pub fn next_action(&mut self, now: Instant) -> ConnectionAction
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