Struct mcap::records::AttachmentIndex
source · pub struct AttachmentIndex {
pub offset: u64,
pub length: u64,
pub log_time: u64,
pub create_time: u64,
pub data_size: u64,
pub name: String,
pub media_type: String,
}
Fields§
§offset: u64
§length: u64
§log_time: u64
§create_time: u64
§data_size: u64
§name: String
§media_type: String
Trait Implementations§
source§impl BinRead for AttachmentIndex
impl BinRead for AttachmentIndex
source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_> ) -> BinResult<Self>
source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>where
R: Read + Seek,
Self::Args<'a>: for<'a> Required,
fn read_be<R>(reader: &mut R) -> Result<Self, Error>where R: Read + Seek, Self::Args<'a>: for<'a> Required,
Read
Self
from the reader using default arguments and assuming
big-endian byte order. Read moresource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>where
R: Read + Seek,
Self::Args<'a>: for<'a> Required,
fn read_le<R>(reader: &mut R) -> Result<Self, Error>where R: Read + Seek, Self::Args<'a>: for<'a> Required,
Read
Self
from the reader using default arguments and assuming
little-endian byte order. Read moresource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>where
R: Read + Seek,
Self::Args<'a>: for<'a> Required,
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>where R: Read + Seek, Self::Args<'a>: for<'a> Required,
Read
T
from the reader assuming native-endian byte order. Read moresource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>where
R: Read + Seek,
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>where R: Read + Seek,
Read
Self
from the reader, assuming big-endian byte order, using the
given arguments. Read moresource§impl BinWrite for AttachmentIndex
impl BinWrite for AttachmentIndex
source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_> ) -> BinResult<()>
source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>where
W: Write + Seek,
Self::Args<'a>: for<'a> Required,
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>where W: Write + Seek, Self::Args<'a>: for<'a> Required,
Write
Self
to the writer assuming big-endian byte order. Read moresource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>where
W: Write + Seek,
Self::Args<'a>: for<'a> Required,
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>where W: Write + Seek, Self::Args<'a>: for<'a> Required,
Write
Self
to the writer assuming little-endian byte order. Read moresource§impl Clone for AttachmentIndex
impl Clone for AttachmentIndex
source§fn clone(&self) -> AttachmentIndex
fn clone(&self) -> AttachmentIndex
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 Debug for AttachmentIndex
impl Debug for AttachmentIndex
source§impl PartialEq for AttachmentIndex
impl PartialEq for AttachmentIndex
source§fn eq(&self, other: &AttachmentIndex) -> bool
fn eq(&self, other: &AttachmentIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AttachmentIndex
impl StructuralEq for AttachmentIndex
impl StructuralPartialEq for AttachmentIndex
Auto Trait Implementations§
impl RefUnwindSafe for AttachmentIndex
impl Send for AttachmentIndex
impl Sync for AttachmentIndex
impl Unpin for AttachmentIndex
impl UnwindSafe for AttachmentIndex
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