#[non_exhaustive]pub enum Error {
Bind {
addr: SocketAddr,
source: Error,
},
Tls(String),
Options(String),
Repo(Error),
Io(Error),
}Expand description
The error of bind and of
ReceiveEndpoint::new.
Each error occurs before the server or the host accepts a connection. An error on one connection ends that connection and no 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.
Bind
A listen address that cannot be bound, or whose local address cannot be read.
Fields
§
addr: SocketAddrThe listen address from the options.
Tls(String)
TLS files that give no server configuration.
Options(String)
Options that the server refuses. The text states the reason.
Repo(Error)
An error of the repository.
Io(Error)
An I/O error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Errorwhere
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
PhantomData<ObjectName>: Freeze,
PhantomData<String>: Freeze,
*const dyn Error + Sync + Send is !null: Freeze,
PhantomData<dyn Error + Sync + Send>: Freeze,
*const ErrorResponse is !null: Freeze,
PhantomData<ErrorResponse>: Freeze,
*const ComposefsImageDefect is !null: Freeze,
PhantomData<ComposefsImageDefect>: Freeze,
PhantomData<(PathBuf, MediaSkip)>: Freeze,
PhantomData<PathBuf>: Freeze,
impl Move for Error
impl Send for Error
impl Sync for Errorwhere
Repr: Sync,
RawVecInner: Sync,
BoxRaw<dyn Error + Sync + Send>: Sync,
BoxRaw<ErrorResponse>: Sync,
BoxRaw<ComposefsImageDefect>: Sync,
impl Unpin for Error
impl UnsafeUnpin for Errorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<ObjectName>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const dyn Error + Sync + Send is !null: UnsafeUnpin,
PhantomData<dyn Error + Sync + Send>: UnsafeUnpin,
*const ErrorResponse is !null: UnsafeUnpin,
PhantomData<ErrorResponse>: UnsafeUnpin,
*const ComposefsImageDefect is !null: UnsafeUnpin,
PhantomData<ComposefsImageDefect>: UnsafeUnpin,
PhantomData<(PathBuf, MediaSkip)>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
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