pub enum AuthConfigError {
Io(Error),
Toml(Error),
NoTokens,
InvalidHash {
id: String,
message: String,
},
SchemaProjectMismatch {
project: String,
kind: SchemaKind,
},
Schema(SchemaError),
}Expand description
Authentication and token configuration for embedded servers. Errors returned while loading security configuration.
Variants§
Io(Error)
Token configuration file could not be read.
Toml(Error)
Token configuration file is not valid TOML.
NoTokens
Token configuration did not contain any token entries.
InvalidHash
Token entry contained an invalid Argon2 hash.
Fields
SchemaProjectMismatch
A [[schema]] entry references a project not declared in [[token]].
Fields
§
kind: SchemaKindThe schema kind from the entry.
Schema(SchemaError)
A schema file could not be read or parsed.
Trait Implementations§
Source§impl Debug for AuthConfigError
impl Debug for AuthConfigError
Source§impl Display for AuthConfigError
impl Display for AuthConfigError
Source§impl Error for AuthConfigError
impl Error for AuthConfigError
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<Error> for AuthConfigError
impl From<Error> for AuthConfigError
Source§impl From<Error> for AuthConfigError
impl From<Error> for AuthConfigError
Source§impl From<SchemaError> for AuthConfigError
impl From<SchemaError> for AuthConfigError
Source§fn from(source: SchemaError) -> Self
fn from(source: SchemaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthConfigError
impl !RefUnwindSafe for AuthConfigError
impl Send for AuthConfigError
impl Sync for AuthConfigError
impl Unpin for AuthConfigError
impl UnsafeUnpin for AuthConfigError
impl !UnwindSafe for AuthConfigError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request