pub trait Controllable {
// Required methods
fn kill<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stop<'a>(&mut self) -> BoxFuture<'a, ()>;
// Provided methods
fn teardown<'a>(&mut self) -> BoxFuture<'a, ()> { ... }
fn on_escrow<'a>(&self) -> BoxStream<'a, ComponentControllerOnEscrowRequest> { ... }
}
Expand description
Object implementing this type can be killed by calling kill function.
Required Methods§
Provided Methods§
Sourcefn teardown<'a>(&mut self) -> BoxFuture<'a, ()>
fn teardown<'a>(&mut self) -> BoxFuture<'a, ()>
Perform any teardown tasks before closing the controller channel.
Sourcefn on_escrow<'a>(&self) -> BoxStream<'a, ComponentControllerOnEscrowRequest>
fn on_escrow<'a>(&self) -> BoxStream<'a, ComponentControllerOnEscrowRequest>
Monitor any escrow requests from the component.