pub enum BridgeError {
Show 16 variants
Core(Error),
InvalidSubjectId(String),
InvalidRequestId(String),
InvalidPublicKey(String),
InvalidSignature(String),
KeyDirectoryCreation(String),
KeyRead(String),
KeyDecrypt(String),
KeyRestore(String),
KeyGeneration(String),
KeyEncrypt(String),
KeyWrite(String),
ConfigBuild(String),
ConfigDeserialize(String),
InvalidEventRequest(String),
SinkAuth(SinkError),
}Expand description
Bridge API errors.
These errors wrap core errors and add bridge-specific error types for input validation, key management, and configuration.
Variants§
Core(Error)
An error originated in the core layer.
InvalidSubjectId(String)
The provided subject identifier is not valid.
InvalidRequestId(String)
The provided request identifier is not valid.
InvalidPublicKey(String)
The provided public key is not valid.
InvalidSignature(String)
The provided signature is not valid.
KeyDirectoryCreation(String)
Failed to create the keys directory.
KeyRead(String)
Failed to read the private key file.
KeyDecrypt(String)
Failed to decrypt the private key. Usually indicates a wrong password.
KeyRestore(String)
Failed to create a key pair from the stored key material.
KeyGeneration(String)
Failed to generate a new key pair.
KeyEncrypt(String)
Failed to encrypt the private key for storage.
KeyWrite(String)
Failed to write the private key file.
ConfigBuild(String)
Failed to build the configuration from the provided sources.
ConfigDeserialize(String)
Failed to deserialize the configuration file.
InvalidEventRequest(String)
The event request could not be converted to the internal format.
SinkAuth(SinkError)
Sink authentication failed during initialization.
Trait Implementations§
Source§impl Clone for BridgeError
impl Clone for BridgeError
Source§fn clone(&self) -> BridgeError
fn clone(&self) -> BridgeError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BridgeError
impl Debug for BridgeError
Source§impl Display for BridgeError
impl Display for BridgeError
Source§impl Error for BridgeError
impl Error for BridgeError
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<Error> for BridgeError
impl From<Error> for BridgeError
Auto Trait Implementations§
impl Freeze for BridgeError
impl RefUnwindSafe for BridgeError
impl Send for BridgeError
impl Sync for BridgeError
impl Unpin for BridgeError
impl UnsafeUnpin for BridgeError
impl UnwindSafe for BridgeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.