pub struct PersistentSessionExtensionStatePort { /* private fields */ }Implementations§
Source§impl PersistentSessionExtensionStatePort
impl PersistentSessionExtensionStatePort
pub fn new(store: Arc<dyn SessionStore>) -> Self
pub fn store(&self) -> &Arc<dyn SessionStore> ⓘ
Trait Implementations§
Source§impl SessionExtensionStatePort for PersistentSessionExtensionStatePort
impl SessionExtensionStatePort for PersistentSessionExtensionStatePort
fn append_durable_entries<'life0, 'life1, 'async_trait>(
&'life0 self,
extension_id: &'life1 str,
entries: Vec<ExtensionDurableEntry>,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, SessionExtensionStateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn replay_durable_entries<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
extension_id: &'life1 str,
leaf_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<Vec<ExtensionDurableEntry>, SessionExtensionStateError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for PersistentSessionExtensionStatePort
impl !UnwindSafe for PersistentSessionExtensionStatePort
impl Freeze for PersistentSessionExtensionStatePort
impl Send for PersistentSessionExtensionStatePort
impl Sync for PersistentSessionExtensionStatePort
impl Unpin for PersistentSessionExtensionStatePort
impl UnsafeUnpin for PersistentSessionExtensionStatePort
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