#[non_exhaustive]pub enum BindError {
MissingCompileTimeFeature {
reason: &'static str,
feature: &'static str,
},
MissingPlatformSupport {
reason: &'static str,
feature: &'static str,
},
EvnVarError {
reason: &'static str,
var: &'static str,
fault: &'static str,
},
MultiBindWithoutAddresses,
InvalidUserOption {
name: &'static str,
},
}
Expand description
tokio-listener
-specific bind errors, to be packed in std::io::Error::other
.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingCompileTimeFeature
Binding failed because of support of specified address type was not enabled at compile time.
MissingPlatformSupport
Binding failed because of support of specified address type is not available on this platform
EvnVarError
Inspecion of current process environment variable to serve sd-listen
failed because of missing or malformed value
MultiBindWithoutAddresses
Attempt to use crate::Listener::bind_multiple
with empty slice of addresses
InvalidUserOption
There is some invalid value in crate::UserOptions
Trait Implementations§
source§impl Error for BindError
impl Error for BindError
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()
Auto Trait Implementations§
impl Freeze for BindError
impl RefUnwindSafe for BindError
impl Send for BindError
impl Sync for BindError
impl Unpin for BindError
impl UnwindSafe for BindError
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
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request