pub struct NoopEncryptorDecryptor;Expand description
A placeholder EncryptorDecryptor used after the store has been shut down.
On shutdown we swap the real encryptor (which, for foreign consumers like Desktop, is a JS-backed callback interface) out for this one. That drops our reference to the foreign callback so its handle is unregistered during shutdown rather than lingering. Any call that still reaches it (e.g. via a stray clone) fails cleanly instead of calling into torn-down foreign code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NoopEncryptorDecryptor
impl RefUnwindSafe for NoopEncryptorDecryptor
impl Send for NoopEncryptorDecryptor
impl Sync for NoopEncryptorDecryptor
impl Unpin for NoopEncryptorDecryptor
impl UnwindSafe for NoopEncryptorDecryptor
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
§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