Struct mcap::Attachment
source · pub struct Attachment<'a> {
pub log_time: u64,
pub create_time: u64,
pub name: String,
pub media_type: String,
pub data: Cow<'a, [u8]>,
}
Expand description
An attachment and its metadata in an MCAP file
Fields§
§log_time: u64
§create_time: u64
§name: String
§media_type: String
§data: Cow<'a, [u8]>
Trait Implementations§
source§impl<'a> Debug for Attachment<'a>
impl<'a> Debug for Attachment<'a>
source§impl<'a> PartialEq for Attachment<'a>
impl<'a> PartialEq for Attachment<'a>
source§fn eq(&self, other: &Attachment<'a>) -> bool
fn eq(&self, other: &Attachment<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Eq for Attachment<'a>
impl<'a> StructuralEq for Attachment<'a>
impl<'a> StructuralPartialEq for Attachment<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Attachment<'a>
impl<'a> Send for Attachment<'a>
impl<'a> Sync for Attachment<'a>
impl<'a> Unpin for Attachment<'a>
impl<'a> UnwindSafe for Attachment<'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