pub struct DynWebviewAttributes(/* private fields */);Expand description
The runtime-specific webview attributes of the selected runtime, see Runtime::RuntimeWebviewAttributes.
Holds the attributes type of the runtime in use (e.g. tauri_runtime_wry::WryWebviewAttributes)
once one of the runtime’s extension traits sets them through DynWebviewAttributes::get_or_default.
Until then the runtime uses its default attributes.
Implementations§
Source§impl DynWebviewAttributes
impl DynWebviewAttributes
Sourcepub fn new<A: Any + Send + Sync>(attributes: A) -> Self
pub fn new<A: Any + Send + Sync>(attributes: A) -> Self
Wraps the attributes of the runtime in use.
Sourcepub fn downcast_ref<A: Any>(&self) -> Option<&A>
pub fn downcast_ref<A: Any>(&self) -> Option<&A>
Returns a reference to the attributes if they are of type A.
Trait Implementations§
Source§impl Debug for DynWebviewAttributes
impl Debug for DynWebviewAttributes
Source§impl Default for DynWebviewAttributes
impl Default for DynWebviewAttributes
Source§fn default() -> DynWebviewAttributes
fn default() -> DynWebviewAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for DynWebviewAttributes
impl !UnwindSafe for DynWebviewAttributes
impl Freeze for DynWebviewAttributes
impl Send for DynWebviewAttributes
impl Sync for DynWebviewAttributes
impl Unpin for DynWebviewAttributes
impl UnsafeUnpin for DynWebviewAttributes
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