#[non_exhaustive]pub enum ForeignDetail {
Offline,
Network,
Dns,
Tls,
Timeout,
Refused,
}Expand description
What failed in reaching a foreign mesh (SPEC 5.5, spec-0.4.3): the detail member, required
with E_FOREIGN_UNAVAILABLE (ErrorCode::ForeignUnavailable) and forbidden in every other
envelope. The list is closed; it is non-exhaustive only so that later revisions can add to
it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Offline
offline: the asked party has no network, or is configured not to use it.
Network
network: any other network failure.
Dns
dns: the foreign host’s name did not resolve.
Tls
tls: the TLS handshake or the certificate failed.
Timeout
timeout.
Refused
refused: the connection was refused.
Implementations§
Source§impl ForeignDetail
impl ForeignDetail
Sourcepub const ALL: &'static [ForeignDetail]
pub const ALL: &'static [ForeignDetail]
Every detail, in the order of SPEC 5.5.
Sourcepub fn from_name(text: &str) -> Option<ForeignDetail>
pub fn from_name(text: &str) -> Option<ForeignDetail>
Looks a detail up by its JSON name; None for anything else (case included).
Trait Implementations§
Source§impl Clone for ForeignDetail
impl Clone for ForeignDetail
impl Copy for ForeignDetail
Source§impl Debug for ForeignDetail
impl Debug for ForeignDetail
Source§impl Display for ForeignDetail
impl Display for ForeignDetail
impl Eq for ForeignDetail
Source§impl Hash for ForeignDetail
impl Hash for ForeignDetail
Source§impl Ord for ForeignDetail
impl Ord for ForeignDetail
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ForeignDetail
impl PartialEq for ForeignDetail
Source§impl PartialOrd for ForeignDetail
impl PartialOrd for ForeignDetail
impl StructuralPartialEq for ForeignDetail
Auto Trait Implementations§
impl Freeze for ForeignDetail
impl RefUnwindSafe for ForeignDetail
impl Send for ForeignDetail
impl Sync for ForeignDetail
impl Unpin for ForeignDetail
impl UnsafeUnpin for ForeignDetail
impl UnwindSafe for ForeignDetail
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