#[repr(C, u8)]pub enum VideoSource {
Url(Url),
File(AzString),
Bytes(U8Vec),
}Expand description
Where a video widget pulls its H.264/MP4 data from — strongly typed so the
decode worker matches on it directly (no RefAny downcast). Mirrors
crate::screencap::ScreenCaptureSource.
Variants§
Url(Url)
An HTTP(S) URL, fetched on the decode thread via an HTTP range request.
File(AzString)
A local filesystem path.
Bytes(U8Vec)
Raw MP4 bytes already in memory.
Trait Implementations§
Source§impl Clone for VideoSource
impl Clone for VideoSource
Source§fn clone(&self) -> VideoSource
fn clone(&self) -> VideoSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoSource
impl Debug for VideoSource
Source§impl Default for VideoSource
impl Default for VideoSource
impl Eq for VideoSource
Source§impl PartialEq for VideoSource
impl PartialEq for VideoSource
impl StructuralPartialEq for VideoSource
Auto Trait Implementations§
impl Freeze for VideoSource
impl RefUnwindSafe for VideoSource
impl Send for VideoSource
impl Sync for VideoSource
impl Unpin for VideoSource
impl UnsafeUnpin for VideoSource
impl UnwindSafe for VideoSource
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