pub enum SessionKeyEnvironmentError {
Configuration(ConfigError),
Key(SessionKeyError),
Persistence {
path: PathBuf,
source: Error,
},
Missing,
}Expand description
Failure to load session key material from the process environment.
Variants§
Configuration(ConfigError)
The configured environment source could not be resolved safely.
Key(SessionKeyError)
The configured or generated key material is invalid.
Persistence
A local development key could not be read or persisted.
Fields
Missing
A persistent key is mandatory outside debug builds.
Trait Implementations§
Source§impl Debug for SessionKeyEnvironmentError
impl Debug for SessionKeyEnvironmentError
Source§impl Display for SessionKeyEnvironmentError
impl Display for SessionKeyEnvironmentError
Source§impl Error for SessionKeyEnvironmentError
impl Error for SessionKeyEnvironmentError
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<ConfigError> for SessionKeyEnvironmentError
impl From<ConfigError> for SessionKeyEnvironmentError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<SessionKeyError> for SessionKeyEnvironmentError
impl From<SessionKeyError> for SessionKeyEnvironmentError
Source§fn from(source: SessionKeyError) -> Self
fn from(source: SessionKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SessionKeyEnvironmentError
impl !UnwindSafe for SessionKeyEnvironmentError
impl Freeze for SessionKeyEnvironmentError
impl Send for SessionKeyEnvironmentError
impl Sync for SessionKeyEnvironmentError
impl Unpin for SessionKeyEnvironmentError
impl UnsafeUnpin for SessionKeyEnvironmentError
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