#[non_exhaustive]pub struct SecurityError {
pub kind: SecurityErrorKind,
pub detail: Cow<'static, str>,
}Expand description
Security-Operation-Fehler.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: SecurityErrorKindFehler-Kategorie.
detail: Cow<'static, str>Menschenlesbarer Hinweis (nicht fuer Endnutzer — intern).
Implementations§
Source§impl SecurityError
impl SecurityError
Sourcepub fn new(
kind: SecurityErrorKind,
detail: impl Into<Cow<'static, str>>,
) -> Self
pub fn new( kind: SecurityErrorKind, detail: impl Into<Cow<'static, str>>, ) -> Self
Konstruktor.
Sourcepub fn not_implemented(detail: impl Into<Cow<'static, str>>) -> Self
pub fn not_implemented(detail: impl Into<Cow<'static, str>>) -> Self
Shortcut fuer NotImplemented.
Sourcepub fn bad_argument(detail: impl Into<Cow<'static, str>>) -> Self
pub fn bad_argument(detail: impl Into<Cow<'static, str>>) -> Self
Shortcut fuer BadArgument.
Trait Implementations§
Source§impl Clone for SecurityError
impl Clone for SecurityError
Source§fn clone(&self) -> SecurityError
fn clone(&self) -> SecurityError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecurityError
impl Debug for SecurityError
Source§impl Display for SecurityError
impl Display for SecurityError
Source§impl Error for SecurityError
Available on crate feature std only.
impl Error for SecurityError
Available on crate feature
std only.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 PartialEq for SecurityError
impl PartialEq for SecurityError
Source§fn eq(&self, other: &SecurityError) -> bool
fn eq(&self, other: &SecurityError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SecurityError
impl StructuralPartialEq for SecurityError
Auto Trait Implementations§
impl Freeze for SecurityError
impl RefUnwindSafe for SecurityError
impl Send for SecurityError
impl Sync for SecurityError
impl Unpin for SecurityError
impl UnsafeUnpin for SecurityError
impl UnwindSafe for SecurityError
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