#[non_exhaustive]pub enum HostCloseAttribution {
Ours,
CleanHostExit,
DurableHostDeath,
DiscardedHostDeath,
}Expand description
Whether a close was ours, harmless, reattachable, or destructive.
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.
Ours
EOF followed a close initiated by this client.
CleanHostExit
The host process exited cleanly after completing its drain.
DurableHostDeath
A durable host died; live waits fail, but the session may be reattached.
DiscardedHostDeath
A non-durable or unknown-profile host died; the session is discarded.
Implementations§
Source§impl HostCloseAttribution
impl HostCloseAttribution
Sourcepub const fn may_reattach(self) -> bool
pub const fn may_reattach(self) -> bool
Whether this is a durable host death, after which the session may be reattached on a new transport.
Sourcepub const fn is_host_death(self) -> bool
pub const fn is_host_death(self) -> bool
Whether the host died, durable or not.
Trait Implementations§
Source§impl Clone for HostCloseAttribution
impl Clone for HostCloseAttribution
impl Copy for HostCloseAttribution
Source§impl Debug for HostCloseAttribution
impl Debug for HostCloseAttribution
impl Eq for HostCloseAttribution
Source§impl PartialEq for HostCloseAttribution
impl PartialEq for HostCloseAttribution
impl StructuralPartialEq for HostCloseAttribution
Auto Trait Implementations§
impl Forget for HostCloseAttribution
impl Freeze for HostCloseAttribution
impl Move for HostCloseAttribution
impl RefUnwindSafe for HostCloseAttribution
impl Send for HostCloseAttribution
impl Sync for HostCloseAttribution
impl Unpin for HostCloseAttribution
impl UnsafeUnpin for HostCloseAttribution
impl UnwindSafe for HostCloseAttribution
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