#[non_exhaustive]pub struct WebLoad {
pub src: String,
pub headers: Vec<(String, String)>,
}Expand description
A page a web view loads with headers on its request (WebView’s
load): the document request carries them; the page’s subresources,
its later navigations and reloads do not. Debug output names the
headers but never shows their values (they are credentials, as
Authorization).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.src: StringThe URL to load.
headers: Vec<(String, String)>The request’s headers, in order: names are HTTP tokens and values
have no line breaks or NULs (WebLoad::new checks).
Implementations§
Trait Implementations§
impl Eq for WebLoad
impl StructuralPartialEq for WebLoad
Auto Trait Implementations§
impl Forget for WebLoad
impl Freeze for WebLoad
impl Move for WebLoad
impl RefUnwindSafe for WebLoad
impl Send for WebLoadwhere
RawVecInner: Send,
impl Sync for WebLoadwhere
RawVecInner: Sync,
impl Unpin for WebLoad
impl UnsafeUnpin for WebLoadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
impl UnwindSafe for WebLoadwhere
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