pub enum ListenError {
TcpBind {
addr: String,
source: Error,
},
UnixBind {
path: String,
source: Error,
},
SystemdActivation(String),
Io(Error),
}Expand description
Errors during listener setup.
Variants§
TcpBind
Failed to bind a TCP socket.
UnixBind
Failed to bind a Unix domain socket.
SystemdActivation(String)
Systemd socket activation environment is misconfigured.
Io(Error)
I/O error.
Trait Implementations§
Source§impl Debug for ListenError
impl Debug for ListenError
Source§impl Display for ListenError
impl Display for ListenError
Source§impl Error for ListenError
impl Error for ListenError
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()
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