pub enum Epitaph {
Explicit(Result<(), Status>),
PeerClosed,
}Expand description
Represents the closure condition of a FIDL channel, either via an explicit epitaph or a direct peer closure.
Variants§
Explicit(Result<(), Status>)
The channel was closed with an explicit epitaph status (Ok(()) for ZX_OK success, or
Err(Status) for an error).
PeerClosed
The channel was closed without an epitaph message (PEER_CLOSED).
Implementations§
Source§impl Epitaph
impl Epitaph
Sourcepub fn is_explicit(&self) -> bool
pub fn is_explicit(&self) -> bool
Returns true if an explicit epitaph was received or set (Explicit).
Sourcepub fn is_peer_closed(&self) -> bool
pub fn is_peer_closed(&self) -> bool
Returns true if the channel was closed without an epitaph (PEER_CLOSED)
or with an explicit PEER_CLOSED epitaph.
Trait Implementations§
impl Copy for Epitaph
impl Eq for Epitaph
Source§impl Error for Epitaph
impl Error for Epitaph
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<Result<(), Status>> for Epitaph
impl PartialEq<Result<(), Status>> for Epitaph
impl StructuralPartialEq for Epitaph
Auto Trait Implementations§
impl Freeze for Epitaph
impl RefUnwindSafe for Epitaph
impl Send for Epitaph
impl Sync for Epitaph
impl Unpin for Epitaph
impl UnsafeUnpin for Epitaph
impl UnwindSafe for Epitaph
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