pub(crate) struct WebViewInner {Show 20 fields
pub(crate) id: WebViewId,
pub(crate) servo: Servo,
pub(crate) delegate: Rc<dyn WebViewDelegate>,
pub(crate) clipboard_delegate: Rc<dyn ClipboardDelegate>,
pub(crate) gamepad_delegate: Rc<dyn GamepadDelegate>,
pub(crate) accesskit_tree_id: Option<TreeId>,
pub(crate) grafted_accesskit_tree_id: Option<TreeId>,
grafted_accesskit_tree_epoch: Option<Epoch>,
rendering_context: Rc<dyn RenderingContext>,
user_content_manager: Option<Rc<UserContentManager>>,
hidpi_scale_factor: Scale<f32, DeviceIndependentPixel, DevicePixel>,
load_status: LoadStatus,
status_text: Option<String>,
page_title: Option<String>,
favicon: Option<Image>,
focused: bool,
animating: bool,
cursor: Cursor,
back_forward_list: Vec<Url>,
back_forward_list_index: usize,
}Fields§
§id: WebViewId§servo: Servo§delegate: Rc<dyn WebViewDelegate>§clipboard_delegate: Rc<dyn ClipboardDelegate>§gamepad_delegate: Rc<dyn GamepadDelegate>§accesskit_tree_id: Option<TreeId>AccessKit subtree id for this WebView, if accessibility is active.
Set by WebView::set_accessibility_active(), and forwarded to the constellation via
EmbedderToConstellationMessage::SetAccessibilityActive.
grafted_accesskit_tree_id: Option<TreeId>TreeId of the web contents of this WebView’s active top-level pipeline,
which is grafted into the tree for this WebView.
grafted_accesskit_tree_epoch: Option<Epoch>A counter for changes to the grafted accesskit tree for this webview.
See Self::grafted_accesskit_tree_id.
rendering_context: Rc<dyn RenderingContext>§user_content_manager: Option<Rc<UserContentManager>>§hidpi_scale_factor: Scale<f32, DeviceIndependentPixel, DevicePixel>§load_status: LoadStatus§status_text: Option<String>§page_title: Option<String>§favicon: Option<Image>§focused: bool§animating: bool§cursor: Cursor§back_forward_list: Vec<Url>The back / forward list of this WebView.
back_forward_list_index: usizeThe current index in the back / forward list.
Trait Implementations§
Source§impl Drop for WebViewInner
impl Drop for WebViewInner
Auto Trait Implementations§
impl Freeze for WebViewInner
impl !RefUnwindSafe for WebViewInner
impl !Send for WebViewInner
impl !Sync for WebViewInner
impl Unpin for WebViewInner
impl UnsafeUnpin for WebViewInner
impl !UnwindSafe for WebViewInner
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> Filterable for T
impl<T> Filterable for T
Source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert