CellLifecycle

Trait CellLifecycle 

Source
pub trait CellLifecycle {
    // Required method
    fn ready(&self, msg: ReadyMsg) -> impl Future<Output = ReadyAck> + Send + '_;
}
Expand description

Cell lifecycle service implemented by the host.

Cells call these methods to signal readiness states.

Required Methods§

Source

fn ready(&self, msg: ReadyMsg) -> impl Future<Output = ReadyAck> + Send + '_

Cell calls this after starting its demux loop to signal it's ready for RPC requests

This proves the cell can receive and respond to RPC calls, establishing RPC-readiness.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§