pub struct Video<Api: Api = Default>(/* private fields */);Implementations§
Source§impl Video<Default>
impl Video<Default>
Sourcepub fn Default() -> Self
pub fn Default() -> Self
Creates default Video without type parameter requirement.
Uses ZST api::Default.
Source§impl Video<Cache>
impl Video<Cache>
Sourcepub fn Cached() -> Self
pub fn Cached() -> Self
Creates Video without type parameter requirement.
Uses api::Cache.
Source§impl<Api: Api + Copy> Video<Api>
impl<Api: Api + Copy> Video<Api>
Sourcepub fn load<P: AsRef<Path>>(
&self,
path: P,
) -> Result<VideoPlayer<Api>, ApiError>
pub fn load<P: AsRef<Path>>( &self, path: P, ) -> Result<VideoPlayer<Api>, ApiError>
Opens the pdv file at path and returns a new VideoPlayer for rendering its frames.
Trait Implementations§
impl<Api: Copy + Api> Copy for Video<Api>
Auto Trait Implementations§
impl<Api> Freeze for Video<Api>where
Api: Freeze,
impl<Api> RefUnwindSafe for Video<Api>where
Api: RefUnwindSafe,
impl<Api> Send for Video<Api>where
Api: Send,
impl<Api> Sync for Video<Api>where
Api: Sync,
impl<Api> Unpin for Video<Api>where
Api: Unpin,
impl<Api> UnwindSafe for Video<Api>where
Api: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.