pub struct LoadUrlParams {
pub type_: Option<LoadUrlReason>,
pub referrer_url: Option<String>,
pub was_user_activated: Option<bool>,
pub headers: Option<Vec<Header>>,
/* private fields */
}
Expand description
Additional parameters for modifying the behavior of [NavigationController.LoadUrl
].
Fields§
§type_: Option<LoadUrlReason>
Provides a hint to the browser UI about how [NavigationController.LoadUrl
] was triggered.
referrer_url: Option<String>
The URL that linked to the resource being requested.
was_user_activated: Option<bool>
Should be set to true to propagate user activation to the frame. User activation implies that the user is interacting with the web frame. It enables some web features that are not available otherwise. For example, autoplay will work only when this flag is set to true.
headers: Option<Vec<Header>>
Custom HTTP headers. RFC7540 does not specify a limit on the number nor size of headers.
Trait Implementations§
Source§impl Debug for LoadUrlParams
impl Debug for LoadUrlParams
Source§impl Decode<LoadUrlParams, DefaultFuchsiaResourceDialect> for LoadUrlParams
impl Decode<LoadUrlParams, DefaultFuchsiaResourceDialect> for LoadUrlParams
Source§impl Default for LoadUrlParams
impl Default for LoadUrlParams
Source§fn default() -> LoadUrlParams
fn default() -> LoadUrlParams
Returns the “default value” for a type. Read more
Source§impl Encode<LoadUrlParams, DefaultFuchsiaResourceDialect> for &mut LoadUrlParams
impl Encode<LoadUrlParams, DefaultFuchsiaResourceDialect> for &mut LoadUrlParams
Source§impl PartialEq for LoadUrlParams
impl PartialEq for LoadUrlParams
Source§impl ResourceTypeMarker for LoadUrlParams
impl ResourceTypeMarker for LoadUrlParams
Source§type Borrowed<'a> = &'a mut LoadUrlParams
type Borrowed<'a> = &'a mut LoadUrlParams
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for LoadUrlParams
impl TypeMarker for LoadUrlParams
Source§type Owned = LoadUrlParams
type Owned = LoadUrlParams
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.impl Standalone<DefaultFuchsiaResourceDialect> for LoadUrlParams
impl StructuralPartialEq for LoadUrlParams
Auto Trait Implementations§
impl Freeze for LoadUrlParams
impl RefUnwindSafe for LoadUrlParams
impl Send for LoadUrlParams
impl Sync for LoadUrlParams
impl Unpin for LoadUrlParams
impl UnwindSafe for LoadUrlParams
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