Enum tracing_modality::InitError
source · pub enum InitError {
AuthRequired,
AuthFailed(ConnectError),
UnexpectedFailure(Error),
}
Variants§
AuthRequired
No auth was provided, set with Options::set_auth
/Options::with_auth
or set the
MODALITY_AUTH_TOKEN
environment variable.
AuthFailed(ConnectError)
Auth was provided, but was not accepted by modality.
UnexpectedFailure(Error)
Errors that it is assumed there is no way to handle without human intervention, meant for consumers to just print and carry on or panic.
Trait Implementations§
source§impl Error for InitError
impl Error for InitError
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 InitError
impl !RefUnwindSafe for InitError
impl Send for InitError
impl Sync for InitError
impl Unpin for InitError
impl !UnwindSafe for InitError
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