pub enum AcceptorCommand {
Stop(Sender<()>),
Terminate,
Pause,
Resume,
Timer,
}Expand description
Command sent to the accept loop.
Variants§
Stop(Sender<()>)
Stops accepting and closes the listeners, then signals the sender.
Terminate
Stops accepting and closes the listeners immediately.
Pause
Stops accepting connections.
Resume
Resumes accepting connections.
Timer
Re-registers listeners that were paused after an accept error.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AcceptorCommand
impl !UnwindSafe for AcceptorCommand
impl Freeze for AcceptorCommand
impl Send for AcceptorCommand
impl Sync for AcceptorCommand
impl Unpin for AcceptorCommand
impl UnsafeUnpin for AcceptorCommand
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