pub struct PlayerLayer { /* private fields */ }Implementations§
Source§impl PlayerLayer
impl PlayerLayer
pub fn new(player: Option<&Player>) -> Result<Self, AVPlayerError>
pub fn has_player(&self) -> Result<bool, AVPlayerError>
pub fn set_player(&self, player: Option<&Player>)
pub fn video_gravity(&self) -> Result<VideoGravity, AVPlayerError>
pub fn set_video_gravity( &self, video_gravity: VideoGravity, ) -> Result<(), AVPlayerError>
pub fn is_ready_for_display(&self) -> Result<bool, AVPlayerError>
pub fn video_rect(&self) -> Result<Rect, AVPlayerError>
pub fn copy_displayed_pixel_buffer(&self) -> Option<CVPixelBuffer>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlayerLayer
impl RefUnwindSafe for PlayerLayer
impl !Sync for PlayerLayer
impl Unpin for PlayerLayer
impl UnsafeUnpin for PlayerLayer
impl UnwindSafe for PlayerLayer
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