pub struct NoControl;Expand description
A control line that never changes: epoch() is always 0.
use net_io::{ControlLine, NoControl};
assert_eq!(NoControl.epoch(), 0);Trait Implementations§
Source§impl ControlLine for NoControl
impl ControlLine for NoControl
impl Copy for NoControl
Auto Trait Implementations§
impl Freeze for NoControl
impl RefUnwindSafe for NoControl
impl Send for NoControl
impl Sync for NoControl
impl Unpin for NoControl
impl UnsafeUnpin for NoControl
impl UnwindSafe for NoControl
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