Expand description
The Rerun logging SDK
This is the bare-bones version of the rerun crate.
rerun exports everything in re_sdk, so in most cases you want to use rerun
instead.
Please read the docs for the rerun crate instead.
§Feature flags
-
data_loaders— Support for using Rerun’s data-loaders directly from the SDK.See our
log_fileexample and https://www.rerun.io/docs/reference/data-loaders/overview for more information. -
web_viewer— Support serving a web viewer over HTTP.Enabling this inflates the binary size quite a bit, since it embeds the viewer wasm.
For faster & easier builds, a pre-built web-views comes bundled with the crate as a Wasm binary. Enabling this feature will embed this pre-built web viewer.
However, when building from source in the repository, this feature adds quite a bit to the compile time since it requires compiling and bundling the viewer as wasm.
Modules§
- Re-exports of other crates.
- Things directly related to logging.
- Different destinations for log messages.
- Time-related types.
Macros§
- Build an
EntityPathfrom parts that are not escaped:
Structs§
- The user-chosen name of the application doing the logging.
- The fully-qualified name of an
Archetype, e.g.rerun.archetypes.Points3D. - The fully-qualified name of a
Component, e.g.rerun.components.Position2D. - The fully-qualified name of a
Datatype, e.g.rerun.datatypes.Vec2D. - The unique identifier of an entity, e.g.
camera/3/points - The different parts that make up an
EntityPath. - A generic indicator component that can be specialized for any
Archetype. - A unique numeric index for each individual instance within a batch.
- Represents a limit in how much RAM to use for the entire process.
- An arbitrary named indicator component.
- A
RecordingStreamhandles everything related to logging data into Rerun. - Construct a
RecordingStream. - Options to control the behavior of
spawn. - A unique id per store.
- A date-time represented as nanoseconds since unix epoch
- A point in time on any number of
Timelines. - A time frame/space, e.g.
log_timeorframe_nr, coupled with the type of time it keeps.
Enums§
- Holds either an owned
ComponentBatchthat lives on heap, or a reference to one. - Errors that can occur when creating/manipulating a
RecordingStream. - Errors that can occur when
spawning a Rerun Viewer. - What kind of Store this is.
Traits§
- An archetype is a high-level construct that represents a set of
Components that usually play well with each other (i.e. they compose nicely). - Describes the interface for interpreting an object as a bundle of
Components. - A
ComponentBatchrepresents an array’s worth ofComponentinstances. - A
DatatypeBatchrepresents an array’s worth ofDatatypeinstances. - A
Loggablerepresents a single instance in an array of loggable data. - A
LoggableBatchrepresents an array’s worth ofLoggableinstances, ready to be serialized. - Approximations of stack and heap size for both internal and external types.
Functions§
- The version of the Rerun SDK.
- Check whether we are the child of a fork.
- Checks the
RERUNenvironment variable. If not found, returns the argument. - The default amount of time to wait for the TCP connection to resume during a flush
- The default address of a Rerun TCP server which an SDK connects to.
- Returns path for force sink if private environment variable
_RERUN_TEST_FORCE_SAVEis set - Creates a new
re_log_types::StoreInfowhich can be used withRecordingStream::new. - Spawns a new Rerun Viewer process ready to listen for TCP connections.
Type Aliases§
- Results that can occur when creating/manipulating a
RecordingStream.