struct PyRecordingStream(RecordingStream);
Tuple Fields§
§0: RecordingStream
Implementations§
Source§impl PyRecordingStream
impl PyRecordingStream
Sourcefn is_forked_child(&self) -> bool
fn is_forked_child(&self) -> bool
Determine if this stream is operating in the context of a forked child process.
This means the stream was created in the parent process. It now exists in the child process by way of fork, but it is effectively a zombie since its batcher and sink threads would not have been copied.
Calling operations such as flush or set_sink will result in an error.
Methods from Deref<Target = RecordingStream>§
pub fn clone_weak(&self) -> RecordingStream
pub fn clone_weak(&self) -> RecordingStream
Clones the [RecordingStream
] without incrementing the refcount.
Useful e.g. if you want to make sure that a detached thread won’t prevent the [RecordingStream
]
from flushing during shutdown.
pub fn log<AS>(
&self,
ent_path: impl Into<EntityPath>,
as_components: &AS,
) -> Result<(), RecordingStreamError>where
AS: AsComponents + ?Sized,
pub fn log<AS>(
&self,
ent_path: impl Into<EntityPath>,
as_components: &AS,
) -> Result<(), RecordingStreamError>where
AS: AsComponents + ?Sized,
Log data to Rerun.
This is the main entry point for logging data to rerun. It can be used to log anything
that implements the AsComponents
, such as any archetype
or individual component.
The data will be timestamped automatically based on the [RecordingStream
]’s internal clock.
See [RecordingStream::set_time_sequence
] etc for more information.
The entity path can either be a string
(with special characters escaped, split on unescaped slashes)
or an EntityPath
constructed with crate::entity_path
.
See https://www.rerun.io/docs/concepts/entity-path for more on entity paths.
See also: [Self::log_static
] for logging static data.
Internally, the stream will automatically micro-batch multiple log calls to optimize transport. See SDK Micro Batching for more information.
§Example:
rec.log(
"my/points",
&rerun::Points3D::new([(0.0, 0.0, 0.0), (1.0, 1.0, 1.0)]),
)?;
pub fn send_columns(
&self,
ent_path: impl Into<EntityPath>,
indexes: impl IntoIterator<Item = TimeColumn>,
columns: impl IntoIterator<Item = SerializedComponentColumn>,
) -> Result<(), RecordingStreamError>
pub fn send_columns( &self, ent_path: impl Into<EntityPath>, indexes: impl IntoIterator<Item = TimeColumn>, columns: impl IntoIterator<Item = SerializedComponentColumn>, ) -> Result<(), RecordingStreamError>
Lower-level logging API to provide data spanning multiple timepoints.
Unlike the regular log
API, which is row-oriented, this API lets you submit the data
in a columnar form. The lengths of all of the TimeColumn
and the component columns
must match. All data that occurs at the same index across the different index/time and components
arrays will act as a single logical row.
Note that this API ignores any stateful index/time set on the log stream via the
[Self::set_time
]/[Self::set_timepoint
]/[Self::set_time_nanos
]/etc. APIs.
Furthermore, this will not inject the default timelines log_tick
and log_time
timeline columns.
pub fn log_static<AS>(
&self,
ent_path: impl Into<EntityPath>,
as_components: &AS,
) -> Result<(), RecordingStreamError>where
AS: AsComponents + ?Sized,
pub fn log_static<AS>(
&self,
ent_path: impl Into<EntityPath>,
as_components: &AS,
) -> Result<(), RecordingStreamError>where
AS: AsComponents + ?Sized,
Log data to Rerun.
It can be used to log anything
that implements the AsComponents
, such as any archetype
or individual component.
Static data has no time associated with it, exists on all timelines, and unconditionally shadows any temporal data of the same type. All timestamp data associated with this message will be dropped right before sending it to Rerun.
This is most often used for rerun::ViewCoordinates
and
rerun::AnnotationContext
.
Internally, the stream will automatically micro-batch multiple log calls to optimize transport. See SDK Micro Batching for more information.
See also [Self::log
].
pub fn log_with_static<AS>(
&self,
ent_path: impl Into<EntityPath>,
static_: bool,
as_components: &AS,
) -> Result<(), RecordingStreamError>where
AS: AsComponents + ?Sized,
pub fn log_with_static<AS>(
&self,
ent_path: impl Into<EntityPath>,
static_: bool,
as_components: &AS,
) -> Result<(), RecordingStreamError>where
AS: AsComponents + ?Sized,
Logs the contents of a component bundle into Rerun.
If static_
is set to true
, all timestamp data associated with this message will be
dropped right before sending it to Rerun.
Static data has no time associated with it, exists on all timelines, and unconditionally shadows
any temporal data of the same type.
Otherwise, the data will be timestamped automatically based on the [RecordingStream
]’s
internal clock.
See RecordingStream::set_time_*
family of methods for more information.
The entity path can either be a string
(with special characters escaped, split on unescaped slashes)
or an EntityPath
constructed with crate::entity_path
.
See https://www.rerun.io/docs/concepts/entity-path for more on entity paths.
Internally, the stream will automatically micro-batch multiple log calls to optimize transport. See SDK Micro Batching for more information.
pub fn log_serialized_batches(
&self,
ent_path: impl Into<EntityPath>,
static_: bool,
comp_batches: impl IntoIterator<Item = SerializedComponentBatch>,
) -> Result<(), RecordingStreamError>
pub fn log_serialized_batches( &self, ent_path: impl Into<EntityPath>, static_: bool, comp_batches: impl IntoIterator<Item = SerializedComponentBatch>, ) -> Result<(), RecordingStreamError>
Logs a set of SerializedComponentBatch
es into Rerun.
If static_
is set to true
, all timestamp data associated with this message will be
dropped right before sending it to Rerun.
Static data has no time associated with it, exists on all timelines, and unconditionally shadows
any temporal data of the same type.
Otherwise, the data will be timestamped automatically based on the [RecordingStream
]’s
internal clock.
See RecordingStream::set_time_*
family of methods for more information.
The number of instances will be determined by the longest batch in the bundle.
The entity path can either be a string
(with special characters escaped, split on unescaped slashes)
or an EntityPath
constructed with crate::entity_path
.
See https://www.rerun.io/docs/concepts/entity-path for more on entity paths.
Internally, the stream will automatically micro-batch multiple log calls to optimize transport. See SDK Micro Batching for more information.
pub fn send_property<AS>(
&self,
name: impl Into<String>,
values: &AS,
) -> Result<(), RecordingStreamError>where
AS: AsComponents + ?Sized,
pub fn send_property<AS>(
&self,
name: impl Into<String>,
values: &AS,
) -> Result<(), RecordingStreamError>where
AS: AsComponents + ?Sized,
Sends a property to the recording.
pub fn send_recording_name(
&self,
name: impl Into<String>,
) -> Result<(), RecordingStreamError>
pub fn send_recording_name( &self, name: impl Into<String>, ) -> Result<(), RecordingStreamError>
Sends the name of the recording.
pub fn send_recording_start_time(
&self,
timestamp: impl Into<Timestamp>,
) -> Result<(), RecordingStreamError>
pub fn send_recording_start_time( &self, timestamp: impl Into<Timestamp>, ) -> Result<(), RecordingStreamError>
Sends the start time of the recording.
pub fn log_file_from_path(
&self,
filepath: impl AsRef<Path>,
entity_path_prefix: Option<EntityPath>,
static_: bool,
) -> Result<(), RecordingStreamError>
pub fn log_file_from_path( &self, filepath: impl AsRef<Path>, entity_path_prefix: Option<EntityPath>, static_: bool, ) -> Result<(), RecordingStreamError>
Logs the file at the given path
using all re_data_loader::DataLoader
s available.
A single path
might be handled by more than one loader.
This method blocks until either at least one re_data_loader::DataLoader
starts
streaming data in or all of them fail.
See https://www.rerun.io/docs/reference/data-loaders/overview for more information.
pub fn log_file_from_contents(
&self,
filepath: impl AsRef<Path>,
contents: Cow<'_, [u8]>,
entity_path_prefix: Option<EntityPath>,
static_: bool,
) -> Result<(), RecordingStreamError>
pub fn log_file_from_contents( &self, filepath: impl AsRef<Path>, contents: Cow<'_, [u8]>, entity_path_prefix: Option<EntityPath>, static_: bool, ) -> Result<(), RecordingStreamError>
Logs the given contents
using all re_data_loader::DataLoader
s available.
A single path
might be handled by more than one loader.
This method blocks until either at least one re_data_loader::DataLoader
starts
streaming data in or all of them fail.
See https://www.rerun.io/docs/reference/data-loaders/overview for more information.
pub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if logging is enabled on this RecordingStream
.
If not, all recording calls will be ignored.
pub fn store_info(&self) -> Option<StoreInfo>
pub fn store_info(&self) -> Option<StoreInfo>
The StoreInfo
associated with this RecordingStream
.
pub fn is_forked_child(&self) -> bool
pub fn is_forked_child(&self) -> bool
Determine whether a fork has happened since creating this RecordingStream
. In general, this means our
batcher/sink threads are gone and all data logged since the fork has been dropped.
It is essential that [crate::cleanup_if_forked_child
] be called after forking the process. SDK-implementations
should do this during their initialization phase.
pub fn record_msg(&self, msg: LogMsg)
pub fn record_msg(&self, msg: LogMsg)
Records an arbitrary LogMsg
.
pub fn record_row(
&self,
entity_path: EntityPath,
row: PendingRow,
inject_time: bool,
)
pub fn record_row( &self, entity_path: EntityPath, row: PendingRow, inject_time: bool, )
Records a single PendingRow
.
If inject_time
is set to true
, the row’s timestamp data will be overridden using the
[RecordingStream
]’s internal clock.
Internally, incoming PendingRow
s are automatically coalesced into larger Chunk
s to
optimize for transport.
pub fn log_chunk(&self, chunk: Chunk)
pub fn log_chunk(&self, chunk: Chunk)
Logs a single Chunk
.
Will inject log_tick
and log_time
timeline columns into the chunk.
If you don’t want to inject these, use [Self::send_chunk
] instead.
pub fn log_chunks(&self, chunks: impl IntoIterator<Item = Chunk>)
pub fn log_chunks(&self, chunks: impl IntoIterator<Item = Chunk>)
Logs multiple Chunk
s.
This will not inject log_tick
and log_time
timeline columns into the chunk,
for that use [Self::log_chunks
].
pub fn send_chunk(&self, chunk: Chunk)
pub fn send_chunk(&self, chunk: Chunk)
Records a single Chunk
.
Will inject log_tick
and log_time
timeline columns into the chunk.
If you don’t want to inject these, use [Self::send_chunks
] instead.
pub fn send_chunks(&self, chunks: impl IntoIterator<Item = Chunk>)
pub fn send_chunks(&self, chunks: impl IntoIterator<Item = Chunk>)
Records multiple Chunk
s.
This will not inject log_tick
and log_time
timeline columns into the chunk,
for that use [Self::log_chunks
].
pub fn set_sink(&self, sink: Box<dyn LogSink>)
pub fn set_sink(&self, sink: Box<dyn LogSink>)
Swaps the underlying sink for a new one.
This guarantees that:
- all pending rows and chunks are batched, collected and sent down the current sink,
- the current sink is flushed if it has pending data in its buffers,
- the current sink’s backlog, if there’s any, is forwarded to the new sink.
When this function returns, the calling thread is guaranteed that all future record calls will end up in the new sink.
§Data loss
If the current sink is in a broken state (e.g. a gRPC sink with a broken connection that cannot be repaired), all pending data in its buffers will be dropped.
pub fn flush_async(&self)
pub fn flush_async(&self)
Initiates a flush of the pipeline and returns immediately.
This does not wait for the flush to propagate (see [Self::flush_blocking
]).
See [RecordingStream
] docs for ordering semantics and multithreading guarantees.
pub fn flush_blocking(&self)
pub fn flush_blocking(&self)
Initiates a flush the batching pipeline and waits for it to propagate.
See [RecordingStream
] docs for ordering semantics and multithreading guarantees.
pub fn connect_grpc(&self) -> Result<(), RecordingStreamError>
pub fn connect_grpc(&self) -> Result<(), RecordingStreamError>
Swaps the underlying sink for a [crate::log_sink::GrpcSink
] sink pre-configured to use
the specified address.
See also [Self::connect_grpc_opts
] if you wish to configure the connection.
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
pub fn connect_grpc_opts(
&self,
url: impl Into<String>,
flush_timeout: Option<Duration>,
) -> Result<(), RecordingStreamError>
pub fn connect_grpc_opts( &self, url: impl Into<String>, flush_timeout: Option<Duration>, ) -> Result<(), RecordingStreamError>
Swaps the underlying sink for a [crate::log_sink::GrpcSink
] sink pre-configured to use
the specified address.
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
flush_timeout
is the minimum time the [GrpcSink
][crate::log_sink::GrpcSink
] will
wait during a flush before potentially dropping data. Note: Passing None
here can cause a
call to flush
to block indefinitely if a connection cannot be established.
pub fn serve_grpc(
&self,
server_memory_limit: MemoryLimit,
) -> Result<(), RecordingStreamError>
pub fn serve_grpc( &self, server_memory_limit: MemoryLimit, ) -> Result<(), RecordingStreamError>
Swaps the underlying sink for a [crate::grpc_server::GrpcServerSink
] pre-configured to listen on
rerun+http://127.0.0.1:9876/proxy
.
To configure the gRPC server’s IP and port, use [Self::serve_grpc_opts
] instead.
You can connect a viewer to it with rerun --connect
.
The gRPC server will buffer all log data in memory so that late connecting viewers will get all the data.
You can limit the amount of data buffered by the gRPC server with the server_memory_limit
argument.
Once reached, the earliest logged data will be dropped. Static data is never dropped.
pub fn serve_grpc_opts(
&self,
bind_ip: impl AsRef<str>,
port: u16,
server_memory_limit: MemoryLimit,
) -> Result<(), RecordingStreamError>
pub fn serve_grpc_opts( &self, bind_ip: impl AsRef<str>, port: u16, server_memory_limit: MemoryLimit, ) -> Result<(), RecordingStreamError>
Swaps the underlying sink for a [crate::grpc_server::GrpcServerSink
] pre-configured to listen on
rerun+http://{bind_ip}:{port}/proxy
.
0.0.0.0
is a good default for bind_ip
.
The gRPC server will buffer all log data in memory so that late connecting viewers will get all the data.
You can limit the amount of data buffered by the gRPC server with the server_memory_limit
argument.
Once reached, the earliest logged data will be dropped. Static data is never dropped.
pub fn spawn(&self) -> Result<(), RecordingStreamError>
pub fn spawn(&self) -> Result<(), RecordingStreamError>
Spawns a new Rerun Viewer process from an executable available in PATH, then swaps the
underlying sink for a [crate::log_sink::GrpcSink
] sink pre-configured to send data to that
new process.
If a Rerun Viewer is already listening on this port, the stream will be redirected to that viewer instead of starting a new one.
See also [Self::spawn_opts
] if you wish to configure the behavior of thew Rerun process
as well as the underlying connection.
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
pub fn spawn_opts(
&self,
opts: &SpawnOptions,
flush_timeout: Option<Duration>,
) -> Result<(), RecordingStreamError>
pub fn spawn_opts( &self, opts: &SpawnOptions, flush_timeout: Option<Duration>, ) -> Result<(), RecordingStreamError>
Spawns a new Rerun Viewer process from an executable available in PATH, then swaps the
underlying sink for a [crate::log_sink::GrpcSink
] sink pre-configured to send data to that
new process.
If a Rerun Viewer is already listening on this port, the stream will be redirected to that viewer instead of starting a new one.
The behavior of the spawned Viewer can be configured via opts
.
If you’re fine with the default behavior, refer to the simpler [Self::spawn
].
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
flush_timeout
is the minimum time the [GrpcSink
][crate::log_sink::GrpcSink
] will
wait during a flush before potentially dropping data. Note: Passing None
here can cause a
call to flush
to block indefinitely if a connection cannot be established.
pub fn memory(&self) -> MemorySinkStorage
pub fn memory(&self) -> MemorySinkStorage
Swaps the underlying sink for a [crate::sink::MemorySink
] sink and returns the associated
[MemorySinkStorage
].
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
pub fn binary_stream(&self) -> BinaryStreamStorage
pub fn binary_stream(&self) -> BinaryStreamStorage
Swaps the underlying sink for a [crate::sink::BinaryStreamSink
] sink and returns the associated
[BinaryStreamStorage
].
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
pub fn save(&self, path: impl Into<PathBuf>) -> Result<(), FileSinkError>
pub fn save(&self, path: impl Into<PathBuf>) -> Result<(), FileSinkError>
Swaps the underlying sink for a crate::sink::FileSink
at the specified path
.
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
pub fn save_opts(&self, path: impl Into<PathBuf>) -> Result<(), FileSinkError>
pub fn save_opts(&self, path: impl Into<PathBuf>) -> Result<(), FileSinkError>
Swaps the underlying sink for a crate::sink::FileSink
at the specified path
.
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
If a blueprint was provided, it will be stored first in the file. Blueprints are currently an experimental part of the Rust SDK.
pub fn stdout(&self) -> Result<(), FileSinkError>
pub fn stdout(&self) -> Result<(), FileSinkError>
Swaps the underlying sink for a crate::sink::FileSink
pointed at stdout.
If there isn’t any listener at the other end of the pipe, the [RecordingStream
] will
default back to buffered
mode, in order not to break the user’s terminal.
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
pub fn stdout_opts(&self) -> Result<(), FileSinkError>
pub fn stdout_opts(&self) -> Result<(), FileSinkError>
Swaps the underlying sink for a crate::sink::FileSink
pointed at stdout.
If there isn’t any listener at the other end of the pipe, the [RecordingStream
] will
default back to buffered
mode, in order not to break the user’s terminal.
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
If a blueprint was provided, it will be stored first in the file. Blueprints are currently an experimental part of the Rust SDK.
pub fn disconnect(&self)
pub fn disconnect(&self)
Swaps the underlying sink for a [crate::sink::BufferedSink
].
This is a convenience wrapper for [Self::set_sink
] that upholds the same guarantees in
terms of data durability and ordering.
See [Self::set_sink
] for more information.
pub fn send_blueprint(
&self,
blueprint: Vec<LogMsg>,
activation_cmd: BlueprintActivationCommand,
)
pub fn send_blueprint( &self, blueprint: Vec<LogMsg>, activation_cmd: BlueprintActivationCommand, )
Send a blueprint through this recording stream
pub fn set_timepoint(&self, timepoint: impl Into<TimePoint>)
pub fn set_timepoint(&self, timepoint: impl Into<TimePoint>)
Set the current time of the recording, for the current calling thread.
Used for all subsequent logging performed from this same thread, until the next call to one of the index/time setting methods.
There is no requirement of monotonicity. You can move the time backwards if you like.
See also:
- [
Self::set_time
] - [
Self::set_time_sequence
] - [
Self::set_duration_secs
] - [
Self::disable_timeline
] - [
Self::reset_time
]
pub fn set_time(
&self,
timeline: impl Into<TimelineName>,
value: impl TryInto<TimeCell>,
)
pub fn set_time( &self, timeline: impl Into<TimelineName>, value: impl TryInto<TimeCell>, )
Set the current value of one of the timelines.
Used for all subsequent logging performed from this same thread, until the next call to one of the index/time setting methods.
There is no requirement of monotonicity. You can move the time backwards if you like.
Example:
rec.set_time("frame_nr", rerun::TimeCell::from_sequence(42));
rec.set_time("duration", std::time::Duration::from_millis(123));
rec.set_time("capture_time", std::time::SystemTime::now());
See also:
- [
Self::set_timepoint
] - [
Self::set_time_sequence
] - [
Self::set_duration_secs
] - [
Self::disable_timeline
] - [
Self::reset_time
]
pub fn set_time_sequence(
&self,
timeline: impl Into<TimelineName>,
sequence: impl Into<i64>,
)
pub fn set_time_sequence( &self, timeline: impl Into<TimelineName>, sequence: impl Into<i64>, )
Set the current time of the recording, for the current calling thread.
Short for set_time(timeline, rerun::TimeCell::from_sequence(sequence))
.
Used for all subsequent logging performed from this same thread, until the next call to one of the index/time setting methods.
For example: rec.set_time_sequence("frame_nr", frame_nr)
.
You can remove a timeline again using rec.disable_timeline("frame_nr")
.
There is no requirement of monotonicity. You can move the time backwards if you like.
See also:
- [
Self::set_time
] - [
Self::set_timepoint
] - [
Self::set_duration_secs
] - [
Self::disable_timeline
] - [
Self::reset_time
]
pub fn set_duration_secs(
&self,
timeline: impl Into<TimelineName>,
secs: impl Into<f64>,
)
pub fn set_duration_secs( &self, timeline: impl Into<TimelineName>, secs: impl Into<f64>, )
Set the current time of the recording, for the current calling thread.
Short for set_time(timeline, std::time::Duration::from_secs_f64(secs))
..
Used for all subsequent logging performed from this same thread, until the next call to one of the index/time setting methods.
For example: rec.set_duration_secs("time_since_start", time_offset)
.
You can remove a timeline again using rec.disable_timeline("time_since_start")
.
There is no requirement of monotonicity. You can move the time backwards if you like.
See also:
- [
Self::set_time
] - [
Self::set_timepoint
] - [
Self::set_timestamp_secs_since_epoch
] - [
Self::set_time_sequence
] - [
Self::disable_timeline
] - [
Self::reset_time
]
pub fn set_timestamp_secs_since_epoch(
&self,
timeline: impl Into<TimelineName>,
secs: impl Into<f64>,
)
pub fn set_timestamp_secs_since_epoch( &self, timeline: impl Into<TimelineName>, secs: impl Into<f64>, )
Set a timestamp as seconds since Unix epoch (1970-01-01 00:00:00 UTC).
Short for self.set_time(timeline, rerun::TimeCell::from_timestamp_secs_since_epoch(secs))
.
Used for all subsequent logging performed from this same thread, until the next call to one of the index/time setting methods.
For example: rec.set_duration_secs("time_since_start", time_offset)
.
You can remove a timeline again using rec.disable_timeline("time_since_start")
.
There is no requirement of monotonicity. You can move the time backwards if you like.
See also:
- [
Self::set_time
] - [
Self::set_timepoint
] - [
Self::set_duration_secs
] - [
Self::set_time_sequence
] - [
Self::disable_timeline
] - [
Self::reset_time
]
pub fn set_time_secs(
&self,
timeline: impl Into<TimelineName>,
seconds: impl Into<f64>,
)
👎Deprecated since 0.23.0: Use either set_duration_secs
or set_timestamp_secs_since_epoch
instead
pub fn set_time_secs( &self, timeline: impl Into<TimelineName>, seconds: impl Into<f64>, )
set_duration_secs
or set_timestamp_secs_since_epoch
insteadSet the current time of the recording, for the current calling thread.
Used for all subsequent logging performed from this same thread, until the next call to one of the index/time setting methods.
For example: rec.set_time_secs("sim_time", sim_time_secs)
.
You can remove a timeline again using rec.disable_timeline("sim_time")
.
There is no requirement of monotonicity. You can move the time backwards if you like.
See also:
- [
Self::set_timepoint
] - [
Self::set_time_sequence
] - [
Self::set_time_nanos
] - [
Self::disable_timeline
] - [
Self::reset_time
]
pub fn set_time_nanos(
&self,
timeline: impl Into<TimelineName>,
nanos_since_epoch: impl Into<i64>,
)
👎Deprecated since 0.23.0: Use set_time
with either rerun::TimeCell::from_duration_nanos
or rerun::TimeCell::from_timestamp_nanos_since_epoch
, or with std::time::Duration
or std::time::SystemTime
.
pub fn set_time_nanos( &self, timeline: impl Into<TimelineName>, nanos_since_epoch: impl Into<i64>, )
set_time
with either rerun::TimeCell::from_duration_nanos
or rerun::TimeCell::from_timestamp_nanos_since_epoch
, or with std::time::Duration
or std::time::SystemTime
.Set the current time of the recording, for the current calling thread.
Used for all subsequent logging performed from this same thread, until the next call to one of the index/time setting methods.
For example: rec.set_time_nanos("sim_time", sim_time_nanos)
.
You can remove a timeline again using rec.disable_timeline("sim_time")
.
There is no requirement of monotonicity. You can move the time backwards if you like.
See also:
- [
Self::set_timepoint
] - [
Self::set_time_sequence
] - [
Self::set_time_secs
] - [
Self::disable_timeline
] - [
Self::reset_time
]
pub fn disable_timeline(&self, timeline: impl Into<TimelineName>)
pub fn disable_timeline(&self, timeline: impl Into<TimelineName>)
Clears out the current time of the recording for the specified timeline, for the current calling thread.
For example: rec.disable_timeline("frame")
, rec.disable_timeline("sim_time")
.
See also:
- [
Self::set_timepoint
] - [
Self::set_time_sequence
] - [
Self::set_time_secs
] - [
Self::set_time_nanos
] - [
Self::reset_time
]
pub fn reset_time(&self)
pub fn reset_time(&self)
Clears out the current time of the recording, for the current calling thread.
Used for all subsequent logging performed from this same thread, until the next call to one of the index/time setting methods.
For example: rec.reset_time()
.
See also:
- [
Self::set_timepoint
] - [
Self::set_time_sequence
] - [
Self::set_time_secs
] - [
Self::set_time_nanos
] - [
Self::disable_timeline
]
Trait Implementations§
Source§impl Clone for PyRecordingStream
impl Clone for PyRecordingStream
Source§fn clone(&self) -> PyRecordingStream
fn clone(&self) -> PyRecordingStream
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Deref for PyRecordingStream
impl Deref for PyRecordingStream
Source§impl IntoPy<Py<PyAny>> for PyRecordingStream
impl IntoPy<Py<PyAny>> for PyRecordingStream
Source§impl<'py> IntoPyObject<'py> for PyRecordingStream
impl<'py> IntoPyObject<'py> for PyRecordingStream
Source§type Target = PyRecordingStream
type Target = PyRecordingStream
Source§type Output = Bound<'py, <PyRecordingStream as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <PyRecordingStream as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'_>>::Output, <Self as IntoPyObject<'_>>::Error>
Source§impl PyClass for PyRecordingStream
impl PyClass for PyRecordingStream
Source§impl PyClassImpl for PyRecordingStream
impl PyClassImpl for PyRecordingStream
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§type ThreadChecker = SendablePyClass<PyRecordingStream>
type ThreadChecker = SendablePyClass<PyRecordingStream>
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::ImmutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny
by default, and when you declare
#[pyclass(extends=PyDict)]
, it’s PyDict
.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
Source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyRecordingStream
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a PyRecordingStream
Source§impl PyMethods<PyRecordingStream> for PyClassImplCollector<PyRecordingStream>
impl PyMethods<PyRecordingStream> for PyClassImplCollector<PyRecordingStream>
fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for PyRecordingStream
impl PyTypeInfo for PyRecordingStream
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
PyTypeInfo::type_object
PyTypeInfo::type_object
].§fn is_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_type_of(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type or a subclass of this type.§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
PyTypeInfo::is_type_of
PyTypeInfo::is_type_of
].§fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool
object
is an instance of this type.§fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool
PyTypeInfo::is_exact_type_of
PyTypeInfo::is_exact_type_of
].impl DerefToPyAny for PyRecordingStream
Auto Trait Implementations§
impl Freeze for PyRecordingStream
impl !RefUnwindSafe for PyRecordingStream
impl Send for PyRecordingStream
impl Sync for PyRecordingStream
impl Unpin for PyRecordingStream
impl !UnwindSafe for PyRecordingStream
Blanket Implementations§
§impl<T> AlignerFor<1> for T
impl<T> AlignerFor<1> for T
§impl<T> AlignerFor<1024> for T
impl<T> AlignerFor<1024> for T
§impl<T> AlignerFor<128> for T
impl<T> AlignerFor<128> for T
§impl<T> AlignerFor<16> for T
impl<T> AlignerFor<16> for T
§impl<T> AlignerFor<16384> for T
impl<T> AlignerFor<16384> for T
§impl<T> AlignerFor<2> for T
impl<T> AlignerFor<2> for T
§impl<T> AlignerFor<2048> for T
impl<T> AlignerFor<2048> for T
§impl<T> AlignerFor<256> for T
impl<T> AlignerFor<256> for T
§impl<T> AlignerFor<32> for T
impl<T> AlignerFor<32> for T
§impl<T> AlignerFor<32768> for T
impl<T> AlignerFor<32768> for T
§impl<T> AlignerFor<4> for T
impl<T> AlignerFor<4> for T
§impl<T> AlignerFor<4096> for T
impl<T> AlignerFor<4096> for T
§impl<T> AlignerFor<512> for T
impl<T> AlignerFor<512> for T
§impl<T> AlignerFor<64> for T
impl<T> AlignerFor<64> for T
§impl<T> AlignerFor<8> for T
impl<T> AlignerFor<8> for T
§impl<T> AlignerFor<8192> for T
impl<T> AlignerFor<8192> for T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Conv for T
impl<T> Conv for T
§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<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
impl<T> FromPyObject<'_> for Twhere
T: PyClass + Clone,
§fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<T, PyErr>
§impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
impl<'py, T> FromPyObjectBound<'_, 'py> for Twhere
T: FromPyObject<'py>,
§fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
fn from_py_object_bound(ob: Borrowed<'_, 'py, PyAny>) -> Result<T, PyErr>
§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 more§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self
into an owned Python object, dropping type information.§fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
fn into_py_any(self, py: Python<'py>) -> Result<Py<PyAny>, PyErr>
self
into an owned Python object, dropping type information and unbinding it
from the 'py
lifetime.§fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
fn into_pyobject_or_pyerr(self, py: Python<'py>) -> Result<Self::Output, PyErr>
self
into a Python object. 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
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
§impl<'a, T> RCowCompatibleRef<'a> for Twhere
T: Clone + 'a,
impl<'a, T> RCowCompatibleRef<'a> for Twhere
T: Clone + 'a,
§impl<S> ROExtAcc for S
impl<S> ROExtAcc for S
§fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
fn f_get<F>(&self, offset: FieldOffset<S, F, Aligned>) -> &F
offset
. Read more§fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
fn f_get_mut<F>(&mut self, offset: FieldOffset<S, F, Aligned>) -> &mut F
offset
. Read more§fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
fn f_get_ptr<F, A>(&self, offset: FieldOffset<S, F, A>) -> *const F
offset
. Read more§fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
fn f_get_mut_ptr<F, A>(&mut self, offset: FieldOffset<S, F, A>) -> *mut F
offset
. Read more§impl<S> ROExtOps<Aligned> for S
impl<S> ROExtOps<Aligned> for S
§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Aligned>, value: F) -> F
offset
) with value
,
returning the previous value of the field. Read more§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Aligned>) -> Fwhere
F: Copy,
§impl<S> ROExtOps<Unaligned> for S
impl<S> ROExtOps<Unaligned> for S
§fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
fn f_replace<F>(&mut self, offset: FieldOffset<S, F, Unaligned>, value: F) -> F
offset
) with value
,
returning the previous value of the field. Read more§fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere
F: Copy,
fn f_get_copy<F>(&self, offset: FieldOffset<S, F, Unaligned>) -> Fwhere
F: Copy,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
§impl<T> SelfOps for Twhere
T: ?Sized,
impl<T> SelfOps for Twhere
T: ?Sized,
§fn piped<F, U>(self, f: F) -> U
fn piped<F, U>(self, f: F) -> U
§fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
piped
except that the function takes &Self
Useful for functions that take &Self
instead of Self
. Read more§fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
piped
, except that the function takes &mut Self
.
Useful for functions that take &mut Self
instead of Self
.§fn mutated<F>(self, f: F) -> Self
fn mutated<F>(self, f: F) -> Self
§fn observe<F>(self, f: F) -> Self
fn observe<F>(self, f: F) -> Self
§fn as_ref_<T>(&self) -> &T
fn as_ref_<T>(&self) -> &T
AsRef
,
using the turbofish .as_ref_::<_>()
syntax. Read more§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.