Enum optivorbis::PacketType
source · pub enum PacketType {
Audio,
IdentificationHeader,
CommentHeader,
SetupHeader,
}Expand description
Represents a Vorbis packet type, defined in the Vorbis I specification, § 4.2.1.
Variants§
Audio
An audio packet, which encodes an audio frame composed of samples.
IdentificationHeader
The Vorbis identification header packet, that marks a stream as Vorbis and contains some basic metadata about it.
CommentHeader
The Vorbis comment header packet, which contains a list of comment key-value pairs meant for tagging and stream metadata that does not affect decoding.
SetupHeader
The Vorbis setup header packet, whose data sets up the codec setup data structures used for decoding audio packets.
Implementations§
source§impl PacketType
impl PacketType
Trait Implementations§
source§impl Clone for PacketType
impl Clone for PacketType
source§fn clone(&self) -> PacketType
fn clone(&self) -> PacketType
Returns a copy of the value. Read more
1.0.0 · 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 PacketType
impl Debug for PacketType
source§impl Display for PacketType
impl Display for PacketType
source§impl PartialEq<PacketType> for PacketType
impl PartialEq<PacketType> for PacketType
source§fn eq(&self, other: &PacketType) -> bool
fn eq(&self, other: &PacketType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u8> for PacketType
impl TryFrom<u8> for PacketType
impl Copy for PacketType
impl Eq for PacketType
impl StructuralEq for PacketType
impl StructuralPartialEq for PacketType
Auto Trait Implementations§
impl RefUnwindSafe for PacketType
impl Send for PacketType
impl Sync for PacketType
impl Unpin for PacketType
impl UnwindSafe for PacketType
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.