Skip to main content

Crate re_log_types

Crate re_log_types 

Source
Expand description

The basic building blocks of the Rerun log format: entity paths, timelines, and store ids.

An entity path names what was logged and a TimePoint on one or more timelines names when. The messages that carry them between the SDK, an .rrd file, and the viewer live in re_log_msg, and the data itself is described by re_sdk_types.

§Feature flags

No documented features in Cargo.toml

§Mono-components

Some components, mostly transform related ones, are “mono-components”. This means that Rerun makes assumptions that depend on this component only taking on a singular value for all instances of an Entity. Where possible, exposed APIs will force these components to be logged as a singular instance. However, it is an error with undefined behavior to manually use lower-level APIs to log a batched mono-component.

This requirement is especially apparent with transforms: Each entity must have a unique transform chain, e.g. the entity foo/bar/baz is has the transform that is the product of foo.transform * foo/bar.transform * foo/bar/baz.transform.

Re-exports§

pub use self::path::*;

Modules§

example_components
Example components to be used for tests and docs
external
hash
path
Every logged entity in Rerun is logged to an EntityPath.

Macros§

entity_path
Build an EntityPath from parts that are not escaped:
entity_path_vec
Build a Vec<EntityPathPart>:
impl_into_enum

Structs§

AbsoluteTimeRange
An absolute time range using TimeInt.
AbsoluteTimeRangeF
Like AbsoluteTimeRange, but using TimeReal for improved precision.
ApplicationId
The user-chosen name of the application doing the logging.
Duration
A signed duration represented as nanoseconds since unix epoch
EntryId
The id for an entry (i.e. a dataset or a table) in a remote catalog.
EntryName
A validated, non-empty ASCII entry name.
IndexWindow
A symmetric window around a point on an index, as an inclusive half-width in that index’s own units.
Instance
A unique numeric index for each individual instance within a batch.
InvalidApplicationIdError
Error returned when constructing an empty ApplicationId.
InvalidEntryNameError
InvalidTimelineNameError
Error returned when constructing an invalid TimelineName.
NonMinI64
An integer that is known not to equal its minimum value.
RecordingId
The recording id for a recording.
StoreId
A unique id per store.
TableId
Either the user-chosen name of a table, or an id that is created by the catalog server.
TimeCell
An typed cell of an index, e.g. a point in time on some unknown timeline.
TimeInt
A 64-bit number describing either nanoseconds, sequence numbers or fully static data.
TimePoint
A point in time on any number of Timelines.
TimeReal
Either nanoseconds or sequence numbers.
Timeline
A time frame/space, e.g. log_time or frame_nr, coupled with the type of time it keeps.
TimelineName
The name of a timeline. Often something like "log_time" or "frame_nr".
TimelinePoint
A point on a timeline
Timestamp
Encodes a timestamp in nanoseconds since unix epoch.
TimestampFormat
How to display a timestamp.
TryFromIntError
An error type returned when a checked integral type conversion fails (mimics std::num::TryFromIntError)

Enums§

DateVisibility
Controls whether the date part of a timestamp is shown.
EntryIdOrName
Either an EntryId or an EntryName for an entry.
StoreKind
What kind of store this is.
TimeType
The type of a TimeInt or crate::Timeline.
TimestampFormatKind
How to display a timestamp.

Traits§

VecDequeInsertionExt
Extends VecDeque with extra insertion routines.
VecDequeRemovalExt
Extends VecDeque with extra removal routines.
VecDequeSortingExt
Extends VecDeque with extra sorting routines.

Functions§

build_frame_nr
Build a (Timeline, TimeInt) tuple from frame_nr suitable for inserting in a TimePoint.
build_index_value
build_log_time
Build a (Timeline, TimeInt) tuple from log_time suitable for inserting in a TimePoint.