pub struct McapLoader { /* private fields */ }Expand description
A DataLoader for MCAP files.
There are many different ways to extract and interpret information from MCAP files.
For example, it might be interesting to query for particular fields of messages,
or show information directly in the Rerun viewer. Because use-cases can vary, the
McapLoader is made up of re_mcap::Layers, each representing different views of the
underlying data.
These layers can be specified in the CLI wen converting an MCAP file to an .rrd. Here are a few examples:
Optionally, Lenses can be configured via Self::with_lenses to transform
chunks as they are loaded (e.g., converting raw protobuf data into semantic Rerun components).
Implementations§
Source§impl McapLoader
impl McapLoader
Sourcepub fn new(selected_layers: SelectedLayers) -> Self
pub fn new(selected_layers: SelectedLayers) -> Self
Creates a new McapLoader that extracts the specified layers.
Sourcepub fn with_raw_fallback(self, raw_fallback_enabled: bool) -> Self
pub fn with_raw_fallback(self, raw_fallback_enabled: bool) -> Self
Configures whether the raw layer is used as a fallback for unsupported channels.
Sourcepub fn with_lenses(self, lenses: Lenses) -> Self
pub fn with_lenses(self, lenses: Lenses) -> Self
Configures lenses to apply to chunks as they are loaded.
Trait Implementations§
Source§impl DataLoader for McapLoader
impl DataLoader for McapLoader
Source§fn name(&self) -> DataLoaderName
fn name(&self) -> DataLoaderName
DataLoader. Read moreSource§fn load_from_path(
&self,
settings: &DataLoaderSettings,
path: PathBuf,
tx: Sender<LoadedData>,
) -> Result<(), DataLoaderError>
fn load_from_path( &self, settings: &DataLoaderSettings, path: PathBuf, tx: Sender<LoadedData>, ) -> Result<(), DataLoaderError>
tx. Read moreSource§fn load_from_file_contents(
&self,
settings: &DataLoaderSettings,
filepath: PathBuf,
contents: Cow<'_, [u8]>,
tx: Sender<LoadedData>,
) -> Result<(), DataLoaderError>
fn load_from_file_contents( &self, settings: &DataLoaderSettings, filepath: PathBuf, contents: Cow<'_, [u8]>, tx: Sender<LoadedData>, ) -> Result<(), DataLoaderError>
tx. Read moreAuto Trait Implementations§
impl Freeze for McapLoader
impl !RefUnwindSafe for McapLoader
impl Send for McapLoader
impl Sync for McapLoader
impl Unpin for McapLoader
impl UnsafeUnpin for McapLoader
impl !UnwindSafe for McapLoader
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request