pub enum Origin {
Chrome,
Content,
Custom(String),
}Expand description
A document’s trust context.
Bound to a document when it is admitted to the host and never derived from
content. Internal schemes are reachable only from a trusted origin
(navigation_allowed).
Variants§
Chrome
Trusted host UI (the chrome document).
Content
Untrusted content (a page).
Custom(String)
A host-defined trusted origin.
Implementations§
Trait Implementations§
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl Forget for Origin
impl Freeze for Origin
impl Move for Origin
impl RefUnwindSafe for Origin
impl Send for Originwhere
RawVecInner: Send,
impl Sync for Originwhere
RawVecInner: Sync,
impl Unpin for Origin
impl UnsafeUnpin for Origin
impl UnwindSafe for Originwhere
RawVecInner: UnwindSafe,
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