Skip to main content

ClientExt

Trait ClientExt 

Source
pub trait ClientExt {
    // Required method
    fn shutdown_ext<'life0, 'async_trait>(
        &'life0 self,
        event_stream: ClientEventStream,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Extension trait on fidl_fuchsia_net_dhcp::ClientProxy.

Required Methods§

Source

fn shutdown_ext<'life0, 'async_trait>( &'life0 self, event_stream: ClientEventStream, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shuts down the client, watching for the GracefulShutdown exit event.

Returns an error if the GracefulShutdown exit event is not observed.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ClientExt for ClientProxy

Source§

fn shutdown_ext<'life0, 'async_trait>( &'life0 self, event_stream: ClientEventStream, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§