pub struct FilesExtension;Implementations§
Source§impl FilesExtension
impl FilesExtension
pub fn new() -> FilesExtension
Trait Implementations§
Source§impl Default for FilesExtension
impl Default for FilesExtension
Source§fn default() -> FilesExtension
fn default() -> FilesExtension
Returns the “default value” for a type. Read more
Source§impl HostExtension for FilesExtension
impl HostExtension for FilesExtension
Source§fn namespace(&self) -> &str
fn namespace(&self) -> &str
Sub-namespace under
window.host.ext.* (e.g. “data” → window.host.ext.data)Source§fn inject_script(&self) -> &str
fn inject_script(&self) -> &str
JavaScript injected after HOST_API_SCRIPT. Must: Read more
Source§fn handle_message(&self, _method: &str, _params: &str) -> Option<String>
fn handle_message(&self, _method: &str, _params: &str) -> Option<String>
Handle a message from the JS bridge.
method is the method name from the JS _call.
params is the JSON params object as a string.
Returns a serialized JSON result, or None for fire-and-forget.Source§fn drain_events(&self) -> Vec<HostPushEvent>
fn drain_events(&self) -> Vec<HostPushEvent>
Drain queued push events destined for
window.host.on(...) listeners. Read moreAuto Trait Implementations§
impl Freeze for FilesExtension
impl RefUnwindSafe for FilesExtension
impl Send for FilesExtension
impl Sync for FilesExtension
impl Unpin for FilesExtension
impl UnsafeUnpin for FilesExtension
impl UnwindSafe for FilesExtension
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