pub struct JsServerCommunicationConfigPlatformApi(ThreadBoundRunner<RawJsServerCommunicationConfigPlatformApi>);Expand description
Thread-safe JavaScript implementation of ServerCommunicationConfigPlatformApi
This wrapper ensures the JavaScript platform API can be safely used across threads in WASM environments by using ThreadBoundRunner to pin operations to the main thread.
Tuple Fields§
§0: ThreadBoundRunner<RawJsServerCommunicationConfigPlatformApi>Implementations§
Source§impl JsServerCommunicationConfigPlatformApi
impl JsServerCommunicationConfigPlatformApi
Sourcepub fn new(platform_api: RawJsServerCommunicationConfigPlatformApi) -> Self
pub fn new(platform_api: RawJsServerCommunicationConfigPlatformApi) -> Self
Creates a new JsServerCommunicationConfigPlatformApi wrapping the raw JavaScript platform API
Trait Implementations§
Source§impl ServerCommunicationConfigPlatformApi for JsServerCommunicationConfigPlatformApi
impl ServerCommunicationConfigPlatformApi for JsServerCommunicationConfigPlatformApi
Acquires cookies for the given hostname Read more
Auto Trait Implementations§
impl Freeze for JsServerCommunicationConfigPlatformApi
impl RefUnwindSafe for JsServerCommunicationConfigPlatformApi
impl Send for JsServerCommunicationConfigPlatformApi
impl Sync for JsServerCommunicationConfigPlatformApi
impl Unpin for JsServerCommunicationConfigPlatformApi
impl UnwindSafe for JsServerCommunicationConfigPlatformApi
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