pub enum Record<'a> {
Show 16 variants
Header(Header),
Footer(Footer),
Schema {
header: SchemaHeader,
data: Cow<'a, [u8]>,
},
Channel(Channel),
Message {
header: MessageHeader,
data: Cow<'a, [u8]>,
},
Chunk {
header: ChunkHeader,
data: Cow<'a, [u8]>,
},
MessageIndex(MessageIndex),
ChunkIndex(ChunkIndex),
Attachment {
header: AttachmentHeader,
data: Cow<'a, [u8]>,
},
AttachmentIndex(AttachmentIndex),
Statistics(Statistics),
Metadata(Metadata),
MetadataIndex(MetadataIndex),
SummaryOffset(SummaryOffset),
DataEnd(DataEnd),
Unknown {
opcode: u8,
data: Cow<'a, [u8]>,
},
}
Expand description
A raw record from an MCAP file.
For records with large slices of binary data (schemas, messages, chunks…),
we use a CoW
that can either borrow directly from the mapped file,
or hold its own buffer if it was decompressed from a chunk.
Variants§
Header(Header)
Schema
Channel(Channel)
Message
Chunk
MessageIndex(MessageIndex)
ChunkIndex(ChunkIndex)
Attachment
AttachmentIndex(AttachmentIndex)
Statistics(Statistics)
Metadata(Metadata)
MetadataIndex(MetadataIndex)
SummaryOffset(SummaryOffset)
DataEnd(DataEnd)
Unknown
A record of unknown type
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Record<'a>
impl<'a> Send for Record<'a>
impl<'a> Sync for Record<'a>
impl<'a> Unpin for Record<'a>
impl<'a> UnwindSafe for Record<'a>
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