pub struct OggAudioMetadata { /* private fields */ }Implementations§
Source§impl OggAudioMetadata
impl OggAudioMetadata
pub fn from_bytes( bytes: &[u8], duration_ms: u64, filename: Option<String>, ) -> Result<Self, ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
pub fn duration_ms(&self) -> u64
pub fn byte_length(&self) -> u64
pub fn filename(&self) -> Option<&str>
pub fn media_type(&self) -> &'static str
Trait Implementations§
Source§impl Clone for OggAudioMetadata
impl Clone for OggAudioMetadata
Source§fn clone(&self) -> OggAudioMetadata
fn clone(&self) -> OggAudioMetadata
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 OggAudioMetadata
impl Debug for OggAudioMetadata
Source§impl<'de> Deserialize<'de> for OggAudioMetadata
impl<'de> Deserialize<'de> for OggAudioMetadata
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 Eq for OggAudioMetadata
Source§impl PartialEq for OggAudioMetadata
impl PartialEq for OggAudioMetadata
Source§impl Serialize for OggAudioMetadata
impl Serialize for OggAudioMetadata
impl StructuralPartialEq for OggAudioMetadata
Auto Trait Implementations§
impl Freeze for OggAudioMetadata
impl RefUnwindSafe for OggAudioMetadata
impl Send for OggAudioMetadata
impl Sync for OggAudioMetadata
impl Unpin for OggAudioMetadata
impl UnsafeUnpin for OggAudioMetadata
impl UnwindSafe for OggAudioMetadata
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