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 Freeze for Recorder
impl RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnsafeUnpin for Recorder
impl UnwindSafe for Recorder
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