pub struct JsSessionRepository(ThreadBoundRunner<RawJsSessionRepository>);Expand description
Thread safe JavaScript implementation of the SessionRepository trait for IPC sessions.
Tuple Fields§
§0: ThreadBoundRunner<RawJsSessionRepository>Implementations§
Source§impl JsSessionRepository
impl JsSessionRepository
Sourcepub fn new(repository: RawJsSessionRepository) -> Self
pub fn new(repository: RawJsSessionRepository) -> Self
Creates a new JsSessionRepository instance wrapping the raw JavaScript repository.
Trait Implementations§
Source§impl Clone for JsSessionRepository
impl Clone for JsSessionRepository
Source§impl<Session> SessionRepository<Session> for JsSessionRepository
impl<Session> SessionRepository<Session> for JsSessionRepository
Source§type RemoveError = String
type RemoveError = String
Error returned when a session could not be removed.
Source§async fn get(
&self,
endpoint: Endpoint,
) -> Result<Option<Session>, Self::GetError>
async fn get( &self, endpoint: Endpoint, ) -> Result<Option<Session>, Self::GetError>
Load the session for the given destination, if one exists.
Auto Trait Implementations§
impl Freeze for JsSessionRepository
impl RefUnwindSafe for JsSessionRepository
impl Send for JsSessionRepository
impl Sync for JsSessionRepository
impl Unpin for JsSessionRepository
impl UnsafeUnpin for JsSessionRepository
impl UnwindSafe for JsSessionRepository
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<> Read more