pub struct WireRecorderHandle(/* private fields */);Expand description
Cloneable, Debug-friendly handle to a shared WireRecorder.
Exists so Option<WireRecorderHandle> can live on
SessionConfig (which derives
Debug + Clone) without requiring Debug from every recorder.
Implementations§
Source§impl WireRecorderHandle
impl WireRecorderHandle
Sourcepub fn new(recorder: Arc<dyn WireRecorder>) -> Self
pub fn new(recorder: Arc<dyn WireRecorder>) -> Self
Wrap a shared recorder.
Sourcepub fn recorder(&self) -> Arc<dyn WireRecorder>
pub fn recorder(&self) -> Arc<dyn WireRecorder>
The underlying shared recorder.
Trait Implementations§
Source§impl Clone for WireRecorderHandle
impl Clone for WireRecorderHandle
Source§fn clone(&self) -> WireRecorderHandle
fn clone(&self) -> WireRecorderHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WireRecorderHandle
impl Debug for WireRecorderHandle
Source§impl From<Arc<dyn WireRecorder>> for WireRecorderHandle
impl From<Arc<dyn WireRecorder>> for WireRecorderHandle
Source§fn from(recorder: Arc<dyn WireRecorder>) -> Self
fn from(recorder: Arc<dyn WireRecorder>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WireRecorderHandle
impl !RefUnwindSafe for WireRecorderHandle
impl Send for WireRecorderHandle
impl Sync for WireRecorderHandle
impl Unpin for WireRecorderHandle
impl !UnwindSafe for WireRecorderHandle
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
Mutably borrows from an owned value. Read more