pub struct ScramRuntimeError {
pub err_code: ScramErrorCode,
pub err_serv: ScramServerError,
pub message: String,
}
Fields§
§err_code: ScramErrorCode
Error code for internal usage
err_serv: ScramServerError
Error code for exteranl usage i.e RFC5802 errors for error handling on client side if no other signalling is used.
message: String
Human readable message with description.
Implementations§
Source§impl ScramRuntimeError
impl ScramRuntimeError
pub fn new( err_code: ScramErrorCode, err_serv: ScramServerError, msg: String, ) -> Self
Sourcepub fn serv_err_value(&self) -> &str
pub fn serv_err_value(&self) -> &str
Converts the external error code to SCRAM protocol format.
Trait Implementations§
Source§impl Clone for ScramRuntimeError
impl Clone for ScramRuntimeError
Source§fn clone(&self) -> ScramRuntimeError
fn clone(&self) -> ScramRuntimeError
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 ScramRuntimeError
impl Debug for ScramRuntimeError
Source§impl Display for ScramRuntimeError
impl Display for ScramRuntimeError
Source§impl PartialEq for ScramRuntimeError
impl PartialEq for ScramRuntimeError
impl Eq for ScramRuntimeError
impl StructuralPartialEq for ScramRuntimeError
Auto Trait Implementations§
impl Freeze for ScramRuntimeError
impl RefUnwindSafe for ScramRuntimeError
impl Send for ScramRuntimeError
impl Sync for ScramRuntimeError
impl Unpin for ScramRuntimeError
impl UnwindSafe for ScramRuntimeError
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