pub struct Evidence<A: Application> { /* private fields */ }Implementations§
Source§impl<A: Application> Evidence<A>
impl<A: Application> Evidence<A>
pub async fn open<K: EvidenceKind>( &self, scope: impl Into<String>, key: impl Into<String>, details: K::Details, ) -> Result<Draft, EvidenceError>
pub async fn external<K: EvidenceKind>( &self, scope: impl Into<String>, key: impl Into<String>, details: K::Details, ) -> Result<Draft, EvidenceError>
pub async fn read<K: EvidenceKind>( &self, scope: &str, key: &str, offset: u64, limit: usize, ) -> Result<Excerpt, EvidenceError>
pub fn list(&self, scope: &str) -> Vec<EvidenceRecord>
pub async fn finalize( &self, draft: &Draft, ) -> Result<EvidenceRecord, EvidenceError>
pub async fn abandon(&self, draft: &Draft) -> Result<(), EvidenceError>
pub async fn finalize_scope( &self, scope: &str, ) -> Result<Vec<EvidenceRecord>, EvidenceError>
pub async fn abandon_scope(&self, scope: &str) -> Result<(), EvidenceError>
pub fn watch(&self, draft: &Draft) -> Result<Receiver<u64>, EvidenceError>
Trait Implementations§
Auto Trait Implementations§
impl<A> !RefUnwindSafe for Evidence<A>
impl<A> !UnwindSafe for Evidence<A>
impl<A> Freeze for Evidence<A>
impl<A> Send for Evidence<A>
impl<A> Sync for Evidence<A>
impl<A> Unpin for Evidence<A>
impl<A> UnsafeUnpin for Evidence<A>
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