pub struct AcceptLoop { /* private fields */ }Expand description
Accept loop for network listeners.
The loop runs on its own thread and passes accepted connections to the server.
Implementations§
Source§impl AcceptLoop
impl AcceptLoop
Sourcepub fn new() -> AcceptLoop
pub fn new() -> AcceptLoop
Sourcepub fn name<T>(&mut self, name: T)
pub fn name<T>(&mut self, name: T)
Sets the server name.
The accept thread is named {name}:accept.
Sourcepub fn notify(&self) -> AcceptNotify
pub fn notify(&self) -> AcceptNotify
Returns a handle for sending commands to the loop.
Sourcepub fn set_status_handler<F>(&mut self, f: F)
pub fn set_status_handler<F>(&mut self, f: F)
Sets the handler that receives accept status changes.
Trait Implementations§
Source§impl Debug for AcceptLoop
impl Debug for AcceptLoop
Source§impl Default for AcceptLoop
impl Default for AcceptLoop
Source§fn default() -> AcceptLoop
fn default() -> AcceptLoop
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AcceptLoop
impl !Sync for AcceptLoop
impl !UnwindSafe for AcceptLoop
impl Freeze for AcceptLoop
impl Send for AcceptLoop
impl Unpin for AcceptLoop
impl UnsafeUnpin for AcceptLoop
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