pub struct ReceiptStore { /* private fields */ }Expand description
Receipts on disk: <root>/receipts/<session>/<id>.json.
Implementations§
Source§impl ReceiptStore
impl ReceiptStore
Sourcepub fn new(root: impl Into<PathBuf>, prefix: impl Into<String>) -> Self
pub fn new(root: impl Into<PathBuf>, prefix: impl Into<String>) -> Self
prefix is the marker prefix this producer uses (for example pulse).
pub fn prefix(&self) -> &str
Sourcepub fn record_emitted(
&self,
event: &HookEvent,
id: &str,
context: &str,
) -> Result<Receipt>
pub fn record_emitted( &self, event: &HookEvent, id: &str, context: &str, ) -> Result<Receipt>
Record context just printed: level emitted. context is the text including its marker.
Trait Implementations§
Source§impl Clone for ReceiptStore
impl Clone for ReceiptStore
Auto Trait Implementations§
impl Freeze for ReceiptStore
impl RefUnwindSafe for ReceiptStore
impl Send for ReceiptStore
impl Sync for ReceiptStore
impl Unpin for ReceiptStore
impl UnsafeUnpin for ReceiptStore
impl UnwindSafe for ReceiptStore
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