pub enum ListenError {
InvalidState,
Unaddressable,
InUse,
}Expand description
Error returned by TcpListener::listen
Requires the tcp-listener feature.
Variants§
Trait Implementations§
Source§impl Clone for ListenError
impl Clone for ListenError
Source§fn clone(&self) -> ListenError
fn clone(&self) -> ListenError
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 ListenError
Source§impl Debug for ListenError
impl Debug for ListenError
Source§impl Display for ListenError
Available on crate feature tcp-listener only.
impl Display for ListenError
Available on crate feature
tcp-listener only.impl Eq for ListenError
Source§impl Error for ListenError
Available on crate feature tcp-listener only.
impl Error for ListenError
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 ListenError
impl PartialEq for ListenError
impl StructuralPartialEq for ListenError
Auto Trait Implementations§
impl Freeze for ListenError
impl RefUnwindSafe for ListenError
impl Send for ListenError
impl Sync for ListenError
impl Unpin for ListenError
impl UnsafeUnpin for ListenError
impl UnwindSafe for ListenError
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