pub struct VmProtoAgentFactory { /* private fields */ }Expand description
Builds VmProtoAgents, and knows how their guests announce readiness.
The default is what vm-agent does: dial the host back on
READY_PORT once its exec and file listeners are up. The other two
Readiness shapes are here because the port promises them to
implementations whose guest cannot dial out — a composer selects one
with Self::with_readiness.
Implementations§
Source§impl VmProtoAgentFactory
impl VmProtoAgentFactory
Sourcepub const fn with_readiness(readiness: Readiness) -> Self
pub const fn with_readiness(readiness: Readiness) -> Self
A factory whose guests announce themselves the given way.
Trait Implementations§
Source§impl Default for VmProtoAgentFactory
impl Default for VmProtoAgentFactory
Source§impl GuestAgentFactory for VmProtoAgentFactory
impl GuestAgentFactory for VmProtoAgentFactory
Source§fn arm_readiness<'life0, 'life1, 'async_trait>(
&'life0 self,
prepared: &'life1 dyn PreparedVm,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ReadyGate>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn arm_readiness<'life0, 'life1, 'async_trait>(
&'life0 self,
prepared: &'life1 dyn PreparedVm,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn ReadyGate>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Arm the readiness observer before the guest starts. Read more
Auto Trait Implementations§
impl Freeze for VmProtoAgentFactory
impl RefUnwindSafe for VmProtoAgentFactory
impl Send for VmProtoAgentFactory
impl Sync for VmProtoAgentFactory
impl Unpin for VmProtoAgentFactory
impl UnsafeUnpin for VmProtoAgentFactory
impl UnwindSafe for VmProtoAgentFactory
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more