Skip to main content

SecurityError

Enum SecurityError 

Source
pub enum SecurityError {
Show 39 variants Encryption(String), Decryption(String), KeyManagement(String), KeyDerivation(String), Authentication(String), Authorization(String), AccessDenied(String), PermissionDenied(String), PolicyEvaluation(String), RoleNotFound(String), UserNotFound(String), TenantNotFound(String), TenantIsolationViolation(String), QuotaExceeded(String), AuditLog(String), AuditQuery(String), LineageTracking(String), LineageQuery(String), Anonymization(String), ComplianceViolation(String), GdprCompliance(String), HipaaCompliance(String), FedRampCompliance(String), SecurityScan(String), VulnerabilityDetected(String), SecretDetected(String), MalwareDetected(String), InvalidConfiguration(String), InvalidInput(String), InvalidKeyFormat(String), InvalidCiphertext(String), Tls(String), Certificate(String), Serialization(String), Deserialization(String), Storage(String), Io(Error), Json(Error), Internal(String),
}
Expand description

Errors that can occur in security operations.

Variants§

§

Encryption(String)

Encryption operation failed.

§

Decryption(String)

Decryption operation failed.

§

KeyManagement(String)

Key management error.

§

KeyDerivation(String)

Key derivation error.

§

Authentication(String)

Authentication failed.

§

Authorization(String)

Authorization failed.

§

AccessDenied(String)

Access denied.

§

PermissionDenied(String)

Permission denied.

§

PolicyEvaluation(String)

Policy evaluation failed.

§

RoleNotFound(String)

Role not found.

§

UserNotFound(String)

User not found.

§

TenantNotFound(String)

Tenant not found.

§

TenantIsolationViolation(String)

Tenant isolation violation.

§

QuotaExceeded(String)

Quota exceeded.

§

AuditLog(String)

Audit logging error.

§

AuditQuery(String)

Audit query error.

§

LineageTracking(String)

Lineage tracking error.

§

LineageQuery(String)

Lineage query error.

§

Anonymization(String)

Anonymization error.

§

ComplianceViolation(String)

Compliance violation.

§

GdprCompliance(String)

GDPR compliance error.

§

HipaaCompliance(String)

HIPAA compliance error.

§

FedRampCompliance(String)

FedRAMP compliance error.

§

SecurityScan(String)

Security scanning error.

§

VulnerabilityDetected(String)

Vulnerability detected.

§

SecretDetected(String)

Secret detected in data.

§

MalwareDetected(String)

Malware detected.

§

InvalidConfiguration(String)

Invalid configuration.

§

InvalidInput(String)

Invalid input.

§

InvalidKeyFormat(String)

Invalid key format.

§

InvalidCiphertext(String)

Invalid ciphertext.

§

Tls(String)

TLS error.

§

Certificate(String)

Certificate error.

§

Serialization(String)

Serialization error.

§

Deserialization(String)

Deserialization error.

§

Storage(String)

Storage error.

§

Io(Error)

I/O error.

§

Json(Error)

JSON error.

§

Internal(String)

Internal error.

Implementations§

Source§

impl SecurityError

Source

pub fn encryption<S: Into<String>>(msg: S) -> Self

Create a new encryption error.

Source

pub fn decryption<S: Into<String>>(msg: S) -> Self

Create a new decryption error.

Source

pub fn key_management<S: Into<String>>(msg: S) -> Self

Create a new key management error.

Source

pub fn key_derivation<S: Into<String>>(msg: S) -> Self

Create a new key derivation error.

Source

pub fn authentication<S: Into<String>>(msg: S) -> Self

Create a new authentication error.

Source

pub fn authorization<S: Into<String>>(msg: S) -> Self

Create a new authorization error.

Source

pub fn access_denied<S: Into<String>>(msg: S) -> Self

Create a new access denied error.

Source

pub fn permission_denied<S: Into<String>>(msg: S) -> Self

Create a new permission denied error.

Source

pub fn internal<S: Into<String>>(msg: S) -> Self

Create a new internal error.

Source

pub fn tenant_not_found<S: Into<String>>(msg: S) -> Self

Create a new tenant not found error.

Source

pub fn quota_exceeded<S: Into<String>>(msg: S) -> Self

Create a new quota exceeded error.

Source

pub fn lineage_tracking<S: Into<String>>(msg: S) -> Self

Create a new lineage tracking error.

Source

pub fn lineage_query<S: Into<String>>(msg: S) -> Self

Create a new lineage query error.

Source

pub fn audit_log<S: Into<String>>(msg: S) -> Self

Create a new audit log error.

Source

pub fn audit_query<S: Into<String>>(msg: S) -> Self

Create a new audit query error.

Source

pub fn policy_evaluation<S: Into<String>>(msg: S) -> Self

Create a new policy evaluation error.

Source

pub fn role_not_found<S: Into<String>>(msg: S) -> Self

Create a new role not found error.

Source

pub fn user_not_found<S: Into<String>>(msg: S) -> Self

Create a new user not found error.

Source

pub fn anonymization<S: Into<String>>(msg: S) -> Self

Create a new anonymization error.

Source

pub fn compliance_violation<S: Into<String>>(msg: S) -> Self

Create a new compliance violation error.

Source

pub fn invalid_input<S: Into<String>>(msg: S) -> Self

Create a new invalid input error.

Source

pub fn serialization<S: Into<String>>(msg: S) -> Self

Create a new serialization error.

Source

pub fn deserialization<S: Into<String>>(msg: S) -> Self

Create a new deserialization error.

Source

pub fn certificate<S: Into<String>>(msg: S) -> Self

Create a new certificate error.

Source

pub fn tls<S: Into<String>>(msg: S) -> Self

Create a new TLS error.

Source

pub fn storage<S: Into<String>>(msg: S) -> Self

Create a new storage error.

Source

pub fn invalid_configuration<S: Into<String>>(msg: S) -> Self

Create a new invalid configuration error.

Source

pub fn invalid_key_format<S: Into<String>>(msg: S) -> Self

Create a new invalid key format error.

Source

pub fn invalid_ciphertext<S: Into<String>>(msg: S) -> Self

Create a new invalid ciphertext error.

Source

pub fn tenant_isolation_violation<S: Into<String>>(msg: S) -> Self

Create a new tenant isolation violation error.

Source

pub fn gdpr_compliance<S: Into<String>>(msg: S) -> Self

Create a new GDPR compliance error.

Source

pub fn hipaa_compliance<S: Into<String>>(msg: S) -> Self

Create a new HIPAA compliance error.

Source

pub fn fedramp_compliance<S: Into<String>>(msg: S) -> Self

Create a new FedRAMP compliance error.

Source

pub fn security_scan<S: Into<String>>(msg: S) -> Self

Create a new security scan error.

Source

pub fn vulnerability_detected<S: Into<String>>(msg: S) -> Self

Create a new vulnerability detected error.

Source

pub fn secret_detected<S: Into<String>>(msg: S) -> Self

Create a new secret detected error.

Source

pub fn malware_detected<S: Into<String>>(msg: S) -> Self

Create a new malware detected error.

Trait Implementations§

Source§

impl Debug for SecurityError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for SecurityError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for SecurityError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for SecurityError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for SecurityError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V