PageSessionSnapshot

Trait PageSessionSnapshot 

Source
pub trait PageSessionSnapshot {
    // Required methods
    fn snapshot<'life0, 'async_trait>(
        self: &'life0 Arc<Self>,
    ) -> Pin<Box<dyn Future<Output = Result<PageSession>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn restore<'life0, 'life1, 'async_trait>(
        self: &'life0 Arc<Self>,
        snapshot: &'life1 PageSession,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn clone_session_to<'life0, 'life1, 'async_trait>(
        self: &'life0 Arc<Self>,
        target: &'life1 Arc<Page>,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Convenient methods for session snapshots

Required Methods§

Source

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

Create a quick snapshot of current session

Source

fn restore<'life0, 'life1, 'async_trait>( self: &'life0 Arc<Self>, snapshot: &'life1 PageSession, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Restore from a snapshot

Source

fn clone_session_to<'life0, 'life1, 'async_trait>( self: &'life0 Arc<Self>, target: &'life1 Arc<Page>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Clone current session to another page

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§