pub enum AcceptError {
InvalidState,
Exhausted,
}Expand description
Error returned by TcpListener::accept_with_socket
Requires the tcp-listener feature.
Variants§
InvalidState
The socket is still open, so it can’t be reused for a new connection.
Exhausted
The accept queue is empty.
Trait Implementations§
Source§impl Clone for AcceptError
impl Clone for AcceptError
Source§fn clone(&self) -> AcceptError
fn clone(&self) -> AcceptError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AcceptError
Source§impl Debug for AcceptError
impl Debug for AcceptError
Source§impl Display for AcceptError
Available on crate feature tcp-listener only.
impl Display for AcceptError
Available on crate feature
tcp-listener only.impl Eq for AcceptError
Source§impl Error for AcceptError
Available on crate feature tcp-listener only.
impl Error for AcceptError
Available on crate feature
tcp-listener only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AcceptError
impl PartialEq for AcceptError
impl StructuralPartialEq for AcceptError
Auto Trait Implementations§
impl Freeze for AcceptError
impl RefUnwindSafe for AcceptError
impl Send for AcceptError
impl Sync for AcceptError
impl Unpin for AcceptError
impl UnsafeUnpin for AcceptError
impl UnwindSafe for AcceptError
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