#[non_exhaustive]pub enum TokenFileError {
File(PrivateFileError),
Malformed,
}Expand description
Why the bootstrap token file could not be read.
No variant carries any part of the token.
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.
File(PrivateFileError)
The file could not be opened or read safely.
Malformed
The file does not hold 64 lowercase hex digits and a newline.
Trait Implementations§
Source§impl Debug for TokenFileError
impl Debug for TokenFileError
Source§impl Display for TokenFileError
impl Display for TokenFileError
Source§impl Error for TokenFileError
impl Error for TokenFileError
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 TokenFileError
impl !UnwindSafe for TokenFileError
impl Forget for TokenFileError
impl Freeze for TokenFileError
impl Move for TokenFileError
impl Send for TokenFileErrorwhere
Repr: Send,
impl Sync for TokenFileErrorwhere
Repr: Sync,
impl Unpin for TokenFileError
impl UnsafeUnpin for TokenFileError
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