Skip to main content

SessionHandle

Trait SessionHandle 

Source
pub trait SessionHandle: Send + Sync {
    // Required methods
    fn is_alive(&self) -> bool;
    fn rebuild<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Session life-and-death (OV-12): a different axis from the action face.

Required Methods§

Source

fn is_alive(&self) -> bool

Whether the execution environment is still usable.

Source

fn rebuild<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<(), SessionError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Rebuild after is_alive() goes false. Failure fails the whole turn — no retry loop on a dead environment (D10).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§