#[repr(C)]pub struct Buffer { /* private fields */ }
Implementations§
Source§impl Buffer
impl Buffer
Sourcepub fn timestamp<T: IsTimestamp>(&self) -> T
pub fn timestamp<T: IsTimestamp>(&self) -> T
Get timestamp
Sourcepub fn set_timestamp<T: IsTimestamp>(&mut self, time: T)
pub fn set_timestamp<T: IsTimestamp>(&mut self, time: T)
Set timestamp
Sourcepub fn has_timecode(&self) -> bool
pub fn has_timecode(&self) -> bool
Buffer has time code
Sourcepub fn set_timecode(&mut self, timecode: Option<TimeCode>)
pub fn set_timecode(&mut self, timecode: Option<TimeCode>)
Set time code
Source§impl Buffer
impl Buffer
Sourcepub fn type_(&self) -> BufferType
pub fn type_(&self) -> BufferType
Buffer type
Sourcepub fn bytes_used(&self) -> u32
pub fn bytes_used(&self) -> u32
Number of bytes in use
Sourcepub fn flags(&self) -> BufferFlag
pub fn flags(&self) -> BufferFlag
Buffer flags
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Buffer
impl RefUnwindSafe for Buffer
impl !Send for Buffer
impl !Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
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