pub enum BootstrapConfigLoadingError {
Show 14 variants
InvalidFileFormat(String),
ReadFile(String, Error),
DecodingJSON(String),
DecodingYAML(String),
DecodingTOML(String),
MissingLogTTL,
ConflictingPolicyStores,
MissingPolicyStore,
UnsupportedPolicyStoreFileFormat(String),
LoadLocalJwks(String, String),
MissingLockServerConfigUri,
InvalidLockServerConfigUri(ParseError),
MissingCjarUrl,
MissingGrpcEndpoint,
}Expand description
Represents errors that may occur while loading a BootstrapConfig from a file.
Variants§
InvalidFileFormat(String)
Error returned when the file format is unsupported.
Supported formats include:
.json.yamlor.yml.toml
ReadFile(String, Error)
Error returned when the file cannot be read.
DecodingJSON(String)
Error returned when parsing the file as JSON fails.
DecodingYAML(String)
Error returned when parsing the file as YAML fails.
DecodingTOML(String)
Error returned when parsing the file as TOML fails.
MissingLogTTL
Error returned when the boostrap property CEDARLING_LOG_TTL is missing.
ConflictingPolicyStores
Error returned when multiple policy store sources were provided.
MissingPolicyStore
Error returned when no policy store source was provided.
UnsupportedPolicyStoreFileFormat(String)
Error returned when the policy store file is in an unsupported format.
LoadLocalJwks(String, String)
Error returned when failing to load a local JWKS
MissingLockServerConfigUri
Error returned when CEDARLING_LOCK is set to enabled but CEDARLING_LOCK_SERVER_CONFIGURATION_URI is not set.
InvalidLockServerConfigUri(ParseError)
Error returned when the lock server configuration URI is invalid.
MissingCjarUrl
Error returned when cjar_url is missing or empty.
MissingGrpcEndpoint
Error returned when transport is set to gRPC but no gRPC endpoint is configured.
Trait Implementations§
Source§impl Debug for BootstrapConfigLoadingError
impl Debug for BootstrapConfigLoadingError
Source§impl Error for BootstrapConfigLoadingError
impl Error for BootstrapConfigLoadingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BootstrapConfigLoadingError> for InitCedarlingError
impl From<BootstrapConfigLoadingError> for InitCedarlingError
Source§fn from(source: BootstrapConfigLoadingError) -> Self
fn from(source: BootstrapConfigLoadingError) -> Self
Source§impl From<Error> for BootstrapConfigLoadingError
impl From<Error> for BootstrapConfigLoadingError
Source§impl From<ParseError> for BootstrapConfigLoadingError
impl From<ParseError> for BootstrapConfigLoadingError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for BootstrapConfigLoadingError
impl !UnwindSafe for BootstrapConfigLoadingError
impl Freeze for BootstrapConfigLoadingError
impl Send for BootstrapConfigLoadingError
impl Sync for BootstrapConfigLoadingError
impl Unpin for BootstrapConfigLoadingError
impl UnsafeUnpin for BootstrapConfigLoadingError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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>
T in a tonic::Request