Struct lofty::id3::v2::RelativeVolumeAdjustmentFrame
source · pub struct RelativeVolumeAdjustmentFrame {
pub identification: String,
pub channels: HashMap<ChannelType, ChannelInformation>,
}Expand description
An ID3v2 RVA2 frame
NOTE: The Eq and Hash implementations depend solely on the identification field.
Fields§
§identification: StringThe identifier used to identify the situation and/or device where this adjustment should apply
channels: HashMap<ChannelType, ChannelInformation>The information for each channel described in the frame
Implementations§
source§impl RelativeVolumeAdjustmentFrame
impl RelativeVolumeAdjustmentFrame
sourcepub fn parse<R>(reader: &mut R, parse_mode: ParsingMode) -> Result<Option<Self>>where
R: Read,
pub fn parse<R>(reader: &mut R, parse_mode: ParsingMode) -> Result<Option<Self>>where
R: Read,
Read an RelativeVolumeAdjustmentFrame
NOTE: This expects the frame header to have already been skipped
§Errors
- Bad channel type (See Id3v2ErrorKind::BadRva2ChannelType)
- Not enough data
sourcepub fn as_bytes(&self) -> Vec<u8>
pub fn as_bytes(&self) -> Vec<u8>
Convert a RelativeVolumeAdjustmentFrame to a byte vec
Trait Implementations§
source§impl Clone for RelativeVolumeAdjustmentFrame
impl Clone for RelativeVolumeAdjustmentFrame
source§fn clone(&self) -> RelativeVolumeAdjustmentFrame
fn clone(&self) -> RelativeVolumeAdjustmentFrame
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 From<RelativeVolumeAdjustmentFrame> for FrameValue
impl From<RelativeVolumeAdjustmentFrame> for FrameValue
source§fn from(value: RelativeVolumeAdjustmentFrame) -> Self
fn from(value: RelativeVolumeAdjustmentFrame) -> Self
Converts to this type from the input type.
source§impl Hash for RelativeVolumeAdjustmentFrame
impl Hash for RelativeVolumeAdjustmentFrame
source§impl PartialEq for RelativeVolumeAdjustmentFrame
impl PartialEq for RelativeVolumeAdjustmentFrame
impl Eq for RelativeVolumeAdjustmentFrame
Auto Trait Implementations§
impl Freeze for RelativeVolumeAdjustmentFrame
impl RefUnwindSafe for RelativeVolumeAdjustmentFrame
impl Send for RelativeVolumeAdjustmentFrame
impl Sync for RelativeVolumeAdjustmentFrame
impl Unpin for RelativeVolumeAdjustmentFrame
impl UnwindSafe for RelativeVolumeAdjustmentFrame
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