pub struct WebMessageSource { /* private fields */ }Expand description
Platform-reported source information for diagnostics and auditing.
It is intentionally not an authorization credential: URLs and origins can
be stale, unavailable, or insufficient to bind a message to an app
session. Authorization must use the native view identity, document binding,
and frame proof in WebMessageContext.
Implementations§
Source§impl WebMessageSource
impl WebMessageSource
pub fn diagnostic_url(reported_url: Option<String>) -> Self
pub fn diagnostic_origin(reported_origin: Option<String>) -> Self
pub fn diagnostic( reported_url: Option<String>, reported_origin: Option<String>, ) -> Self
Sourcepub fn reported_url(&self) -> Option<&str>
pub fn reported_url(&self) -> Option<&str>
A platform-reported URL. This is diagnostic data, never authorization.
Sourcepub fn reported_origin(&self) -> Option<&str>
pub fn reported_origin(&self) -> Option<&str>
A platform-reported origin. This is diagnostic data, never authorization.
Trait Implementations§
Source§impl Clone for WebMessageSource
impl Clone for WebMessageSource
Source§fn clone(&self) -> WebMessageSource
fn clone(&self) -> WebMessageSource
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 WebMessageSource
impl Debug for WebMessageSource
Source§impl Default for WebMessageSource
impl Default for WebMessageSource
Source§fn default() -> WebMessageSource
fn default() -> WebMessageSource
Returns the “default value” for a type. Read more
impl Eq for WebMessageSource
Source§impl PartialEq for WebMessageSource
impl PartialEq for WebMessageSource
impl StructuralPartialEq for WebMessageSource
Auto Trait Implementations§
impl Freeze for WebMessageSource
impl RefUnwindSafe for WebMessageSource
impl Send for WebMessageSource
impl Sync for WebMessageSource
impl Unpin for WebMessageSource
impl UnsafeUnpin for WebMessageSource
impl UnwindSafe for WebMessageSource
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