pub enum LocalError {
Storage(StorageError),
Generate(Error),
Cert(CertError),
Fleet(FleetError),
Refused(String),
}Expand description
Why a local certificate could not be generated, loaded or served.
Variants§
Storage(StorageError)
The data directory could not be read or written.
Generate(Error)
Generating or signing a certificate failed.
Cert(CertError)
A certificate this module just signed or loaded could not be turned
into something rustls can serve.
Fleet(FleetError)
The zones could not be assembled into one resolver.
Refused(String)
A zone this mode was asked to serve is not one it may serve. Carries
crate::source::CertificateSource::refusal_for’s sentence.
Trait Implementations§
Source§impl Debug for LocalError
impl Debug for LocalError
Source§impl Display for LocalError
impl Display for LocalError
Source§impl Error for LocalError
impl Error for LocalError
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 From<CertError> for LocalError
impl From<CertError> for LocalError
Source§impl From<Error> for LocalError
impl From<Error> for LocalError
Source§impl From<FleetError> for LocalError
impl From<FleetError> for LocalError
Source§fn from(source: FleetError) -> Self
fn from(source: FleetError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for LocalError
impl From<StorageError> for LocalError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LocalError
impl !RefUnwindSafe for LocalError
impl Send for LocalError
impl Sync for LocalError
impl Unpin for LocalError
impl UnsafeUnpin for LocalError
impl !UnwindSafe for LocalError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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