pub struct EventLog {
pub run_id: String,
pub run_dir: PathBuf,
pub events_file: PathBuf,
pub blob_dir: PathBuf,
/* private fields */
}Fields§
§run_id: String§run_dir: PathBuf§events_file: PathBuf§blob_dir: PathBufImplementations§
Source§impl EventLog
impl EventLog
pub fn new( run_id: impl Into<String>, base_dir: impl AsRef<Path>, ) -> Result<Self>
pub fn append(&mut self, draft: EventDraft) -> Result<WorkflowEventEnvelope>
pub fn read_all(&self) -> Result<Vec<WorkflowEventEnvelope>>
pub fn read_blob(&self, reference: &str) -> Result<Vec<u8>>
pub fn current_seq(&mut self) -> Result<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventLog
impl RefUnwindSafe for EventLog
impl Send for EventLog
impl Sync for EventLog
impl Unpin for EventLog
impl UnsafeUnpin for EventLog
impl UnwindSafe for EventLog
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