pub struct EnhancedStatusCode {
pub class: u8,
pub subject: u8,
pub detail: u8,
}Expand description
Enhanced Status Code (RFC 3463)
Format: X.Y.Z where:
- X: Class (2=Success, 4=Transient Failure, 5=Permanent Failure)
- Y: Subject (0=Other, 1=Addressing, 2=Mailbox, 3=Mail System, 4=Network, 5=Protocol, 6=Content, 7=Security)
- Z: Detail (specific detail code)
Fields§
§class: u8§subject: u8§detail: u8Implementations§
Source§impl EnhancedStatusCode
impl EnhancedStatusCode
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if this is a success code (2.X.X)
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
Check if this is a transient failure (4.X.X)
Sourcepub fn is_permanent(&self) -> bool
pub fn is_permanent(&self) -> bool
Check if this is a permanent failure (5.X.X)
Source§impl EnhancedStatusCode
Common enhanced status codes (RFC 3463)
impl EnhancedStatusCode
Common enhanced status codes (RFC 3463)
pub const SUCCESS: Self
pub const BAD_DESTINATION_MAILBOX: Self
pub const BAD_DESTINATION_SYSTEM: Self
pub const BAD_DESTINATION_SYNTAX: Self
pub const DESTINATION_AMBIGUOUS: Self
pub const DESTINATION_VALID: Self
pub const MAILBOX_MOVED: Self
pub const BAD_SENDER_ADDRESS: Self
pub const BAD_SENDER_SYSTEM: Self
pub const MAILBOX_DISABLED: Self
pub const MAILBOX_FULL: Self
pub const MAILBOX_FULL_TEMP: Self
pub const MESSAGE_TOO_LARGE: Self
pub const MAILING_LIST_EXPANSION: Self
pub const SYSTEM_FULL: Self
pub const SYSTEM_NOT_ACCEPTING: Self
pub const SYSTEM_CAPABILITY: Self
pub const MESSAGE_TOO_BIG: Self
pub const SYSTEM_INCORRECTLY_CONFIGURED: Self
pub const NO_ANSWER: Self
pub const CONNECTION_DROPPED: Self
pub const ROUTING_SERVER_FAILURE: Self
pub const NETWORK_CONGESTION: Self
pub const ROUTING_LOOP: Self
pub const DELIVERY_TIME_EXPIRED: Self
pub const INVALID_COMMAND: Self
pub const SYNTAX_ERROR: Self
pub const TOO_MANY_RECIPIENTS: Self
pub const INVALID_PARAMETERS: Self
pub const WRONG_PROTOCOL: Self
pub const MEDIA_NOT_SUPPORTED: Self
pub const CONVERSION_REQUIRED: Self
pub const CONVERSION_NOT_POSSIBLE: Self
pub const CONVERSION_LOST: Self
pub const CONVERSION_FAILED: Self
pub const DELIVERY_NOT_AUTHORIZED: Self
pub const MAILING_LIST_EXPANSION_PROHIBITED: Self
pub const SECURITY_CONVERSION_REQUIRED: Self
pub const SECURITY_FEATURES_NOT_SUPPORTED: Self
pub const CRYPTOGRAPHIC_FAILURE: Self
pub const CRYPTOGRAPHIC_ALGORITHM_NOT_SUPPORTED: Self
pub const MESSAGE_INTEGRITY_FAILURE: Self
pub const AUTHENTICATION_CREDENTIALS_INVALID: Self
pub const AUTHENTICATION_MECHANISM_TOO_WEAK: Self
pub const ENCRYPTION_NEEDED: Self
pub const SENDER_ADDRESS_INVALID: Self
pub const MESSAGE_REFUSED: Self
pub const TRUST_RELATIONSHIP_REQUIRED: Self
pub const PRIORITY_TOO_LOW: Self
pub const MESSAGE_TOO_BIG_FOR_POLICY: Self
pub const MAILBOX_OWNER_CHANGED: Self
pub const RRVS_CANNOT_VALIDATE: Self
Trait Implementations§
Source§impl Clone for EnhancedStatusCode
impl Clone for EnhancedStatusCode
Source§fn clone(&self) -> EnhancedStatusCode
fn clone(&self) -> EnhancedStatusCode
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 EnhancedStatusCode
impl Debug for EnhancedStatusCode
Source§impl Display for EnhancedStatusCode
impl Display for EnhancedStatusCode
Source§impl PartialEq for EnhancedStatusCode
impl PartialEq for EnhancedStatusCode
impl Copy for EnhancedStatusCode
impl Eq for EnhancedStatusCode
impl StructuralPartialEq for EnhancedStatusCode
Auto Trait Implementations§
impl Freeze for EnhancedStatusCode
impl RefUnwindSafe for EnhancedStatusCode
impl Send for EnhancedStatusCode
impl Sync for EnhancedStatusCode
impl Unpin for EnhancedStatusCode
impl UnsafeUnpin for EnhancedStatusCode
impl UnwindSafe for EnhancedStatusCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.