Enum AcceptError
pub enum AcceptError {
InvalidState,
InvalidPort,
ConnectionReset,
}
Available on crate feature
tcp
only.Expand description
Error returned by TcpSocket::accept
.
Variants§
InvalidState
The socket is already connected or listening.
InvalidPort
Invalid listen port
ConnectionReset
The remote host rejected the connection with a RST packet.
Trait Implementations§
§impl Clone for AcceptError
impl Clone for AcceptError
§fn clone(&self) -> AcceptError
fn clone(&self) -> AcceptError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for AcceptError
impl Debug for AcceptError
§impl Format for AcceptError
impl Format for AcceptError
§impl PartialEq for AcceptError
impl PartialEq for AcceptError
impl Copy for AcceptError
impl Eq 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 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