Struct re_viewer::external::re_entity_db::Timeline
source · pub struct Timeline {
name: TimelineName,
typ: TimeType,
}
Expand description
A time frame/space, e.g. log_time
or frame_nr
, coupled with the type of time
it keeps.
Fields§
§name: TimelineName
§typ: TimeType
Implementations§
source§impl Timeline
impl Timeline
sourcepub fn new_temporal(name: impl Into<TimelineName>) -> Timeline
pub fn new_temporal(name: impl Into<TimelineName>) -> Timeline
For absolute or relative time.
sourcepub fn new_sequence(name: impl Into<TimelineName>) -> Timeline
pub fn new_sequence(name: impl Into<TimelineName>) -> Timeline
For things like camera frames or iteration count.
pub fn new(name: impl Into<TimelineName>, typ: TimeType) -> Timeline
pub fn name(&self) -> &TimelineName
pub fn typ(&self) -> TimeType
sourcepub fn log_time() -> Timeline
pub fn log_time() -> Timeline
The log time timeline to which all API functions will always log.
This timeline is automatically maintained by the SDKs and captures the wall-clock time at which point the data was logged (according to the client’s wall-clock).
sourcepub fn log_tick() -> Timeline
pub fn log_tick() -> Timeline
The log tick timeline to which all API functions will always log.
This timeline is automatically maintained by the SDKs and captures the logging tick at
which point the data was logged.
The logging tick is monotically incremented each time the client calls one of the logging
methods on a RecordingStream
.
sourcepub fn format_time_range(
&self,
time_range: &ResolvedTimeRange,
time_zone_for_timestamps: TimeZone
) -> String
pub fn format_time_range( &self, time_range: &ResolvedTimeRange, time_zone_for_timestamps: TimeZone ) -> String
Returns a formatted string of time_range
on this Timeline
.
sourcepub fn format_time_range_utc(&self, time_range: &ResolvedTimeRange) -> String
pub fn format_time_range_utc(&self, time_range: &ResolvedTimeRange) -> String
Returns a formatted string of time_range
on this Timeline
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Timeline
impl<'de> Deserialize<'de> for Timeline
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Timeline, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Timeline, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl Ord for Timeline
impl Ord for Timeline
source§impl PartialEq for Timeline
impl PartialEq for Timeline
source§impl PartialOrd for Timeline
impl PartialOrd for Timeline
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Timeline
impl Serialize for Timeline
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
source§impl SizeBytes for Timeline
impl SizeBytes for Timeline
source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
self
on the heap, in bytes.source§fn total_size_bytes(&self) -> u64
fn total_size_bytes(&self) -> u64
self
in bytes, accounting for both stack and heap space.source§fn stack_size_bytes(&self) -> u64
fn stack_size_bytes(&self) -> u64
self
on the stack, in bytes. Read moresource§impl TryFrom<IndexColumnSelector> for Timeline
impl TryFrom<IndexColumnSelector> for Timeline
§type Error = TypeConversionError
type Error = TypeConversionError
source§fn try_from(
value: IndexColumnSelector
) -> Result<Timeline, <Timeline as TryFrom<IndexColumnSelector>>::Error>
fn try_from( value: IndexColumnSelector ) -> Result<Timeline, <Timeline as TryFrom<IndexColumnSelector>>::Error>
impl Copy for Timeline
impl Eq for Timeline
impl IsEnabled for Timeline
impl StructuralPartialEq for Timeline
Auto Trait Implementations§
impl Freeze for Timeline
impl RefUnwindSafe for Timeline
impl Send for Timeline
impl Sync for Timeline
impl Unpin for Timeline
impl UnwindSafe for Timeline
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>
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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