Enum rsasl::error::SessionError
source · [−]pub enum SessionError {
Io {
source: Error,
},
Base64 {
source: DecodeError,
},
NoSecurityLayer,
AuthenticationFailure,
InputDataRequired,
MechanismError(Box<dyn MechanismError>),
NoCallback {
property: Property,
},
NoValidate {
validation: Validation,
},
NoProperty {
property: Property,
},
}
Variants
Io
Fields
source: Error
Base64
Fields
source: DecodeError
NoSecurityLayer
AuthenticationFailure
Authentication exchange as syntactically valid but failed. Returned e.g. if the provided password didn’t match the provided user.
InputDataRequired
Mechanism was called without input data when requiring some
MechanismError(Box<dyn MechanismError>)
NoCallback
Fields
property: Property
NoValidate
Fields
validation: Validation
NoProperty
Fields
property: Property
Implementations
sourceimpl SessionError
impl SessionError
pub fn no_property<P: PropertyQ>() -> Self
pub fn no_validate(validation: Validation) -> Self
pub fn input_required() -> Self
pub fn is_mechanism_error(&self) -> bool
Trait Implementations
sourceimpl Debug for SessionError
impl Debug for SessionError
sourceimpl Display for SessionError
impl Display for SessionError
sourceimpl From<DecodeError> for SessionError
impl From<DecodeError> for SessionError
sourcefn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Performs the conversion.
sourceimpl<T: MechanismError + 'static> From<T> for SessionError
impl<T: MechanismError + 'static> From<T> for SessionError
Auto Trait Implementations
impl !RefUnwindSafe for SessionError
impl !Send for SessionError
impl !Sync for SessionError
impl Unpin for SessionError
impl !UnwindSafe for SessionError
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