pub enum BottleError {
}Expand description
Errors that can occur in Bottle operations.
This enum covers all error conditions that can arise when using the rust-bottle library, including cryptographic failures, key management issues, and serialization problems.
§Example
use rust_bottle::errors::{BottleError, Result};
fn example() -> Result<()> {
// Operations that might fail
Err(BottleError::KeyNotFound)
}Variants§
NoAppropriateKey
VerifyFailed
KeyNotFound
GroupNotFound
KeyUnfit
EncryptNoRecipient
InvalidKeyType
Serialization(String)
Deserialization(String)
Encryption(String)
Decryption(String)
Io(String)
InvalidFormat
UnsupportedAlgorithm
Trait Implementations§
Source§impl Clone for BottleError
impl Clone for BottleError
Source§fn clone(&self) -> BottleError
fn clone(&self) -> BottleError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BottleError
impl Debug for BottleError
Source§impl Display for BottleError
impl Display for BottleError
Source§impl Error for BottleError
impl Error for BottleError
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<Error> for BottleError
impl From<Error> for BottleError
Source§impl PartialEq for BottleError
impl PartialEq for BottleError
impl StructuralPartialEq for BottleError
Auto Trait Implementations§
impl Freeze for BottleError
impl RefUnwindSafe for BottleError
impl Send for BottleError
impl Sync for BottleError
impl Unpin for BottleError
impl UnwindSafe for BottleError
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