pub enum AcceptError {
InvalidState,
InvalidPort,
ConnectionReset,
}
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§
Source§impl Clone for AcceptError
impl Clone for AcceptError
Source§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 moreSource§impl Debug for AcceptError
impl Debug for AcceptError
Source§impl Format for AcceptError
impl Format for AcceptError
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)