Skip to main content

ChannelEpitaphExt

Trait ChannelEpitaphExt 

Source
pub trait ChannelEpitaphExt {
    // Required method
    fn close_with_epitaph(
        self,
        status: impl Into<Result<(), Status>>,
    ) -> Result<(), Error>;
}
Expand description

Extension trait that provides Channel-like objects with the ability to send a FIDL epitaph.

Required Methods§

Source

fn close_with_epitaph( self, status: impl Into<Result<(), Status>>, ) -> Result<(), Error>

Consumes the channel and writes an epitaph.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§