pub struct Location {
pub group: VarInt,
pub object: VarInt,
}Expand description
Location within a track: (Group, Object).
Fields§
§group: VarIntGroup identifier.
object: VarIntObject identifier within the group.
Implementations§
Source§impl Location
impl Location
Sourcepub fn encode(&self, buf: &mut impl BufMut)
pub fn encode(&self, buf: &mut impl BufMut)
Encode the location (group, object) into the buffer.
Sourcepub fn decode(buf: &mut impl Buf) -> Result<Self, CodecError>
pub fn decode(buf: &mut impl Buf) -> Result<Self, CodecError>
Decode a location from the buffer.
Sourcepub fn encode_moqt<P: MoqtProfile>(&self, buf: &mut impl BufMut)
pub fn encode_moqt<P: MoqtProfile>(&self, buf: &mut impl BufMut)
Encode the location using the MoQT varint (drafts 17 and later).
Sourcepub fn decode_moqt<P: MoqtProfile>(
buf: &mut impl Buf,
) -> Result<Self, CodecError>
pub fn decode_moqt<P: MoqtProfile>( buf: &mut impl Buf, ) -> Result<Self, CodecError>
Decode a location using the MoQT varint (drafts 17 and later).
Trait Implementations§
impl Copy for Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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