pub enum EmbedKind {
Video,
Web,
Custom,
}Expand description
The kind of platform-native surface embedded in the UI.
Used by LayoutOp::Embed to tell the platform layer what type of native
view to create and manage.
Variants§
Video
A video playback surface.
Web
A web browser view (e.g., WKWebView, WebView2).
Custom
A custom platform-native view not covered by the other variants.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EmbedKind
impl<'de> Deserialize<'de> for EmbedKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for EmbedKind
impl StructuralPartialEq for EmbedKind
Auto Trait Implementations§
impl Freeze for EmbedKind
impl RefUnwindSafe for EmbedKind
impl Send for EmbedKind
impl Sync for EmbedKind
impl Unpin for EmbedKind
impl UnsafeUnpin for EmbedKind
impl UnwindSafe for EmbedKind
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