pub struct ProbeGate;Expand description
Readiness::Probe: one agent round trip, which is the whole of what
this shape can observe.
GuestAgent::sync_clock is that round trip — its Ok means the agent
accepted a connection, parsed a frame and replied — and it is what the
cold-boot path used as its readiness gate before the guest learned to
dial out. Its side effect is one the boot wants anyway.
Transport-independent, so every factory that answers
Readiness::Probe returns this rather than its own.
Trait Implementations§
Source§impl ReadyGate for ProbeGate
impl ReadyGate for ProbeGate
Source§fn wait<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_handle: &'life1 Arc<dyn VmHandle>,
agent: &'life2 Arc<dyn GuestAgent>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn wait<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
_handle: &'life1 Arc<dyn VmHandle>,
agent: &'life2 Arc<dyn GuestAgent>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Wait for the guest agent to be serving. Read more
Auto Trait Implementations§
impl Freeze for ProbeGate
impl RefUnwindSafe for ProbeGate
impl Send for ProbeGate
impl Sync for ProbeGate
impl Unpin for ProbeGate
impl UnsafeUnpin for ProbeGate
impl UnwindSafe for ProbeGate
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