pub struct WebMessageContext { /* private fields */ }Expand description
Non-forgeable platform context bound to an incoming WebView message.
Carrying this context does not by itself authorize bridge dispatch. The bridge admission layer must explicitly evaluate its binding and proof.
Implementations§
Source§impl WebMessageContext
impl WebMessageContext
pub const fn native_view(&self) -> NativeWebViewId
pub const fn document(&self) -> DocumentBinding
pub const fn frame(&self) -> WebMessageFrame
pub const fn transport(&self) -> WebMessageTransport
pub fn source(&self) -> &WebMessageSource
Trait Implementations§
Source§impl Clone for WebMessageContext
impl Clone for WebMessageContext
Source§fn clone(&self) -> WebMessageContext
fn clone(&self) -> WebMessageContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebMessageContext
impl Debug for WebMessageContext
impl Eq for WebMessageContext
Source§impl PartialEq for WebMessageContext
impl PartialEq for WebMessageContext
impl StructuralPartialEq for WebMessageContext
Auto Trait Implementations§
impl Freeze for WebMessageContext
impl RefUnwindSafe for WebMessageContext
impl Send for WebMessageContext
impl Sync for WebMessageContext
impl Unpin for WebMessageContext
impl UnsafeUnpin for WebMessageContext
impl UnwindSafe for WebMessageContext
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