pub trait GuestLifecycleProxyInterface: Send + Sync {
type CreateResponseFut: Future<Output = Result<GuestLifecycleCreateResult, Error>> + Send;
type RunResponseFut: Future<Output = Result<GuestLifecycleRunResult, Error>> + Send;
type StopResponseFut: Future<Output = Result<(), Error>> + Send;
// Required methods
fn create(&self, guest_config: GuestConfig) -> Self::CreateResponseFut;
fn bind(&self, guest: ServerEnd<GuestMarker>) -> Result<(), Error>;
fn run(&self) -> Self::RunResponseFut;
fn stop(&self) -> Self::StopResponseFut;
}Required Associated Types§
type CreateResponseFut: Future<Output = Result<GuestLifecycleCreateResult, Error>> + Send
type RunResponseFut: Future<Output = Result<GuestLifecycleRunResult, Error>> + Send
type StopResponseFut: Future<Output = Result<(), Error>> + Send
Required Methods§
fn create(&self, guest_config: GuestConfig) -> Self::CreateResponseFut
fn bind(&self, guest: ServerEnd<GuestMarker>) -> Result<(), Error>
fn run(&self) -> Self::RunResponseFut
fn stop(&self) -> Self::StopResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".