pub struct WasmContextAdapter { /* private fields */ }Expand description
Thread-local context adapter (WASM-compatible)
Implementations§
Trait Implementations§
Source§impl ContextPort for WasmContextAdapter
impl ContextPort for WasmContextAdapter
Source§fn add_context(&self, key: String, value: Value)
fn add_context(&self, key: String, value: Value)
Add a context field
Source§fn remove_context(&self, key: &str)
fn remove_context(&self, key: &str)
Remove a context field
Source§fn clear_context(&self)
fn clear_context(&self)
Clear all context
Auto Trait Implementations§
impl Freeze for WasmContextAdapter
impl RefUnwindSafe for WasmContextAdapter
impl Send for WasmContextAdapter
impl Sync for WasmContextAdapter
impl Unpin for WasmContextAdapter
impl UnsafeUnpin for WasmContextAdapter
impl UnwindSafe for WasmContextAdapter
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