pub(crate) trait SeatRestart: Send + Sync {
// Required method
fn restart<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 SessionSlot,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
How the supervisor brings a seat back. Production dispatches through the workspace; a test records the call instead of spawning a child.
Required Methods§
Sourcefn restart<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 SessionSlot,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn restart<'life0, 'life1, 'async_trait>(
&'life0 self,
slot: &'life1 SessionSlot,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Bring slot back. Ok carries the session it came back on when
one is known; Err is the refusal’s reason, which the lead’s
notice says instead of a restart.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".