pub struct CreateFrameParams {
pub enable_remote_debugging: Option<bool>,
pub debug_name: Option<String>,
pub explicit_sites_filter_error_page: Option<Data>,
/* private fields */
}
Expand description
Parameters specifying the configuration for a new [Frame
].
Fields§
§enable_remote_debugging: Option<bool>
Set to true to enable remote debugging. The [Frame
] will be closed with
ERR_INVALID_ARGS
if remote_debugging_port
was not set in
CreateContextParams
.
debug_name: Option<String>
Set to give the Frame a name to help distinguish it in debug contexts , such as system log output. For example, the name may be added to messages from web content when they are logged to the system logger. The name does not affect user- or web-visible behavior. Popup Frames created by the Frame will have a name derived from the parent Frame’s name.
explicit_sites_filter_error_page: Option<Data>
Enables automatic blocking of navigations to explicit sites, and specifies the error page
content, in HTML, to be loaded in the Frame when a navigation is canceled by the filter.
Applies to navigations in all frames within the Frame.
When navigation of the main document is canceled, the Frame’s [NavigationState.PageType
]
is ERROR
.
If set to an empty buffer, a default error message will be displayed.
If set and such filtering is not supported, the [Frame
] will disconnect with
ZX_ERR_NOT_SUPPORTED
.
Trait Implementations§
Source§impl Debug for CreateFrameParams
impl Debug for CreateFrameParams
Source§impl Decode<CreateFrameParams, DefaultFuchsiaResourceDialect> for CreateFrameParams
impl Decode<CreateFrameParams, DefaultFuchsiaResourceDialect> for CreateFrameParams
Source§impl Default for CreateFrameParams
impl Default for CreateFrameParams
Source§fn default() -> CreateFrameParams
fn default() -> CreateFrameParams
Source§impl Encode<CreateFrameParams, DefaultFuchsiaResourceDialect> for &mut CreateFrameParams
impl Encode<CreateFrameParams, DefaultFuchsiaResourceDialect> for &mut CreateFrameParams
Source§impl PartialEq for CreateFrameParams
impl PartialEq for CreateFrameParams
Source§impl ResourceTypeMarker for CreateFrameParams
impl ResourceTypeMarker for CreateFrameParams
Source§type Borrowed<'a> = &'a mut CreateFrameParams
type Borrowed<'a> = &'a mut CreateFrameParams
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>
&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 CreateFrameParams
impl TypeMarker for CreateFrameParams
Source§type Owned = CreateFrameParams
type Owned = CreateFrameParams
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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.