pub struct SubtitlePacket<E, D> { /* private fields */ }Expand description
A compressed subtitle packet.
Implementations§
Source§impl<E, D> SubtitlePacket<E, D>
impl<E, D> SubtitlePacket<E, D>
Sourcepub const fn flags(&self) -> PacketFlags
pub const fn flags(&self) -> PacketFlags
Returns the flags.
Sourcepub fn into_parts(self) -> (D, E)
pub fn into_parts(self) -> (D, E)
Consumes the packet and returns (buffer, extras).
Sourcepub const fn with_duration(self, v: Option<Timestamp>) -> Self
pub const fn with_duration(self, v: Option<Timestamp>) -> Self
Sets the duration (consuming builder).
Sourcepub const fn with_flags(self, v: PacketFlags) -> Self
pub const fn with_flags(self, v: PacketFlags) -> Self
Sets the flags (consuming builder).
Sourcepub const fn set_duration(&mut self, v: Option<Timestamp>) -> &mut Self
pub const fn set_duration(&mut self, v: Option<Timestamp>) -> &mut Self
Sets the duration in place.
Sourcepub const fn set_flags(&mut self, v: PacketFlags) -> &mut Self
pub const fn set_flags(&mut self, v: PacketFlags) -> &mut Self
Sets the flags in place.
Auto Trait Implementations§
impl<E, D> Freeze for SubtitlePacket<E, D>
impl<E, D> RefUnwindSafe for SubtitlePacket<E, D>where
D: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, D> Send for SubtitlePacket<E, D>
impl<E, D> Sync for SubtitlePacket<E, D>
impl<E, D> Unpin for SubtitlePacket<E, D>
impl<E, D> UnsafeUnpin for SubtitlePacket<E, D>where
D: UnsafeUnpin,
E: UnsafeUnpin,
impl<E, D> UnwindSafe for SubtitlePacket<E, D>where
D: UnwindSafe,
E: UnwindSafe,
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