pub struct Recorder { /* private fields */ }Expand description
Appends one session’s events. It writes nothing when saving is off, and after a failed write it reports the error once and writes nothing more.
Implementations§
Source§impl Recorder
impl Recorder
Sourcepub fn new(saving: Option<&Saving>, request: &Request, id: &SessionId) -> Self
pub fn new(saving: Option<&Saving>, request: &Request, id: &SessionId) -> Self
The recorder of a request’s new review session id. No file is created until start.
pub fn id(&self) -> &SessionId
Sourcepub fn reference(&self) -> Option<&SessionRef>
pub fn reference(&self) -> Option<&SessionRef>
The saved review’s reference, after its header flush, even if a later append fails.
Auto Trait Implementations§
impl Forget for Recorder
impl Freeze for Recorderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const Pending is !null: Freeze,
PhantomData<Pending>: Freeze,
I32NotAllOnes: Freeze,
*const ArcInner<Publishing> is !null: Freeze,
PhantomData<ArcInner<Publishing>>: Freeze,
impl Move for Recorder
impl RefUnwindSafe for Recorderwhere
I32NotAllOnes: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
Mutex<Outbox>: RefUnwindSafe,
Notify: RefUnwindSafe,
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnsafeUnpin for Recorderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const Pending is !null: UnsafeUnpin,
PhantomData<Pending>: UnsafeUnpin,
I32NotAllOnes: UnsafeUnpin,
*const ArcInner<Publishing> is !null: UnsafeUnpin,
PhantomData<ArcInner<Publishing>>: UnsafeUnpin,
impl UnwindSafe for Recorderwhere
RawVecInner: UnwindSafe,
BoxRaw<Pending>: UnwindSafe,
I32NotAllOnes: UnwindSafe,
Arc<Publishing>: UnwindSafe,
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