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.
Re-exports§
pub use web_viewer::serve_web_viewer;
Modules§
- external
- Re-exports of other crates.
- grpc_
server - Method for spawning a gRPC server and streaming the SDK log stream to it.
- lenses
- Transformation and reinterpretation of components.
- log
- Things directly related to logging.
- sink
- Different destinations for log messages.
- time
- Time-related types.
- web_
viewer - Methods for spawning the web viewer and streaming the SDK log stream to it.
Macros§
- entity_
path - Build an
EntityPathfrom parts that are not escaped:
Structs§
- Application
Id - The user-chosen name of the application doing the logging. In the context of a remote recording, this is the dataset entry id.
- Archetype
Name - The fully-qualified name of an
Archetype, e.g.rerun.archetypes.Points3D. - Component
Descriptor - A
ComponentDescriptorfully describes the semantics of a column of data. - Component
Identifier - An identifier for a component, i.e. a field in an
Archetype. - Component
Type - The fully-qualified name of a
Component, e.g.rerun.components.Position2D. - Data
Loader Settings - Recommended settings for the
DataLoader. - Datatype
Name - The fully-qualified name of a [
Datatype], e.g.rerun.datatypes.Vec2D. - Entity
Path - The unique identifier of an entity, e.g.
camera/3/points - Entity
Path Part - The different parts that make up an
EntityPath. - Instance
- A unique numeric index for each individual instance within a batch.
- Memory
Limit - Represents a limit in how much RAM to use for the entire process.
- Recording
Info - Archetype: A list of properties associated with a recording.
- Recording
Stream - A
RecordingStreamhandles everything related to logging data into Rerun. - Recording
Stream Builder - Construct a
RecordingStream. - Serialized
Component Batch - The serialized contents of a
ComponentBatchwith associatedComponentDescriptor. - Serialized
Component Column - A column’s worth of component data.
- Server
Options - Options for the gRPC Proxy Server
- Spawn
Options - Options to control the behavior of
spawn. - StoreId
- A unique id per store.
- Time
Cell - An typed cell of an index, e.g. a point in time on some unknown timeline.
- Time
Point - A point in time on any number of
Timelines. - Timeline
- A time frame/space, e.g.
log_timeorframe_nr, coupled with the type of time it keeps.
Enums§
- Data
Loader Error - Errors that might happen when loading data through a
DataLoader. - Deserialization
Error - Loaded
Data - What
DataLoaders load. - Playback
Behavior - What happens when a client connects to a gRPC server?
- Recording
Stream Error - Errors that can occur when creating/manipulating a
RecordingStream. - Serialization
Error - Spawn
Error - Errors that can occur when
spawning a Rerun Viewer. - Store
Kind - What kind of store this is.
Constants§
- DEFAULT_
CONNECT_ URL - The default URL of a Rerun gRPC /proxy server.
- DEFAULT_
SERVER_ PORT - The default port of a Rerun gRPC /proxy server.
Traits§
- Archetype
- 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). - AsComponents
- Describes the interface for interpreting an object as a bundle of
Components. - Component
- A
Componentdescribes semantic data that can be used by any number ofArchetypes. - Component
Batch - A
ComponentBatchrepresents an array’s worth ofLoggableinstances, ready to be serialized. - Data
Loader - A
DataLoaderloads data from a file path and/or a file’s contents. - Loggable
- A
Loggablerepresents a single instance in an array of loggable data. - Size
Bytes - Approximations of stack and heap size for both internal and external types.
Functions§
- build_
info - The version of the Rerun SDK.
- cleanup_
if_ forked_ child - Check whether we are the child of a fork.
- decide_
logging_ enabled - Checks the
RERUNenvironment variable. If not found, returns the argument. - default_
server_ addr Deprecated - The default address of a Rerun gRPC server which an SDK connects to.
- forced_
sink_ path - Returns path for force sink if private environment variable
_RERUN_TEST_FORCE_SAVEis set - new_
store_ info - Creates a new
re_log_types::StoreInfowhich can be used withRecordingStream::new. - spawn
- Spawns a new Rerun Viewer process ready to listen for connections.
Type Aliases§
- Deserialization
Result - Recording
Stream Result - Results that can occur when creating/manipulating a
RecordingStream. - Serialization
Result