#[non_exhaustive]
pub enum SodokenErrKind {
Show 17 variants
AllocationFailed,
BadHashSize,
BadSaltSize,
BadKeySize,
BadPublicKeySize,
BadSecretKeySize,
BadSignatureSize,
BadSeedSize,
BadCipherSize,
BadNonceSize,
BadMessageSize,
BadPassphraseSize,
BadOpsLimit,
BadMemLimit,
WriteOverflow,
InternalSodium,
Other,
}
Expand description
Error Kind Enum for Sodoken OneErr.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AllocationFailed
we were unable to allocate memory
BadHashSize
the output hash size for this call didn’t fall within constraints
BadSaltSize
the salt size for this call didn’t fall within constraints
BadKeySize
the key size for this call didn’t fall within constraints
BadPublicKeySize
the public key size for this call didn’t fall within constraints
BadSecretKeySize
the secret key size for this call didn’t fall within constraints
BadSignatureSize
improper size for signature
BadSeedSize
improper size for seed
BadCipherSize
improper size for cipher
BadNonceSize
improper size for nonce
BadMessageSize
improper size for message
BadPassphraseSize
the passphrase size for this call didn’t fall within constraints
BadOpsLimit
the ops limit for this call didn’t fall within constraints
BadMemLimit
the mem limit for this call didn’t fall within constraints
WriteOverflow
bad bounds for write operation
InternalSodium
Internal libsodium error
Other
OtherErrorType
Trait Implementations
impl Debug for SodokenErrKind
impl Debug for SodokenErrKind
impl<'_> From<&'_ OneErr> for SodokenErrKind
impl<'_> From<&'_ OneErr> for SodokenErrKind
fn from(e: &OneErr) -> SodokenErrKind
fn from(e: &OneErr) -> SodokenErrKind
Converts to this type from the input type.
impl<'_> From<&'_ str> for SodokenErrKind
impl<'_> From<&'_ str> for SodokenErrKind
fn from(e: &str) -> SodokenErrKind
fn from(e: &str) -> SodokenErrKind
Converts to this type from the input type.
impl From<SodokenErrKind> for OneErr
impl From<SodokenErrKind> for OneErr
fn from(k: SodokenErrKind) -> OneErr
fn from(k: SodokenErrKind) -> OneErr
Converts to this type from the input type.
impl From<SodokenErrKind> for &'static str
impl From<SodokenErrKind> for &'static str
fn from(k: SodokenErrKind) -> &'static str
fn from(k: SodokenErrKind) -> &'static str
Converts to this type from the input type.
impl FromStr for SodokenErrKind
impl FromStr for SodokenErrKind
fn from_str(s: &str) -> Result<SodokenErrKind, <SodokenErrKind as FromStr>::Err>
fn from_str(s: &str) -> Result<SodokenErrKind, <SodokenErrKind as FromStr>::Err>
Parses a string s
to return a value of this type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SodokenErrKind
impl Send for SodokenErrKind
impl Sync for SodokenErrKind
impl Unpin for SodokenErrKind
impl UnwindSafe for SodokenErrKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more