Enum ogg::writing::PacketWriteEndInfo
source · pub enum PacketWriteEndInfo {
NormalPacket,
EndPage,
EndStream,
}
Expand description
Specifies whether to end something with the write of the packet.
If you want to end a stream you need to inform the Ogg PacketWriter
about this. This is the enum to do so.
Also, Codecs sometimes have special requirements to put
the first packet of the whole stream into its own page.
The EndPage
variant can be used for this.
Variants§
NormalPacket
No ends here, just a normal packet
EndPage
Force-end the current page
EndStream
End the whole logical stream.
Trait Implementations§
source§impl Clone for PacketWriteEndInfo
impl Clone for PacketWriteEndInfo
source§fn clone(&self) -> PacketWriteEndInfo
fn clone(&self) -> PacketWriteEndInfo
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 PartialEq for PacketWriteEndInfo
impl PartialEq for PacketWriteEndInfo
source§fn eq(&self, other: &PacketWriteEndInfo) -> bool
fn eq(&self, other: &PacketWriteEndInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PacketWriteEndInfo
impl StructuralPartialEq for PacketWriteEndInfo
Auto Trait Implementations§
impl RefUnwindSafe for PacketWriteEndInfo
impl Send for PacketWriteEndInfo
impl Sync for PacketWriteEndInfo
impl Unpin for PacketWriteEndInfo
impl UnwindSafe for PacketWriteEndInfo
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