pub enum FfiError {
VaultDoesNotSupportPersistence = 1,
ErrorCreatingFilesystemVault = 2,
InvalidParam = 3,
EntryNotFound = 4,
UnknownPublicKeyType = 5,
InvalidString = 6,
BufferTooSmall = 7,
InvalidPublicKey = 8,
VaultNotFound = 9,
OwnershipError = 10,
UnexpectedPanic = 11,
}Expand description
Represents the failures that can occur in an Ockam FFI Vault.
Variants§
VaultDoesNotSupportPersistence = 1
Persistence is not supported for this Vault implementation.
ErrorCreatingFilesystemVault = 2
An underlying filesystem error prevented Vault creation.
InvalidParam = 3
Invalid parameter.
EntryNotFound = 4
Entry not found.
UnknownPublicKeyType = 5
Unknown public key type.
InvalidString = 6
Invalid string.
BufferTooSmall = 7
Buffer is too small.
InvalidPublicKey = 8
A public key is invalid.
VaultNotFound = 9
No such Vault.
OwnershipError = 10
Ownership error.
UnexpectedPanic = 11
Caught a panic (which would be UB if we let it unwind across the FFI).
Trait Implementations§
Source§impl Error for FfiError
impl Error for FfiError
1.30.0 · 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<FfiError> for FfiOckamError
impl From<FfiError> for FfiOckamError
impl Copy for FfiError
Auto Trait Implementations§
impl Freeze for FfiError
impl RefUnwindSafe for FfiError
impl Send for FfiError
impl Sync for FfiError
impl Unpin for FfiError
impl UnwindSafe for FfiError
Blanket Implementations§
Source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
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> 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<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
Source§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
Source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more