pub struct InMemoryLogClient<'a, T: Serialize + Deserialize<'a>, TL: TransparentLog<'a, T>> { /* private fields */ }Expand description
In-memory client to a TransparentLog, keeping track of the latest log verified
Trait Implementations§
Source§impl<'a, T: Serialize + Deserialize<'a>, TL: TransparentLog<'a, T>> LogClient<'a, T, TL> for InMemoryLogClient<'a, T, TL>
impl<'a, T: Serialize + Deserialize<'a>, TL: TransparentLog<'a, T>> LogClient<'a, T, TL> for InMemoryLogClient<'a, T, TL>
Source§fn set_latest(&mut self, latest: LogTree<TL::LogSize>)
fn set_latest(&mut self, latest: LogTree<TL::LogSize>)
Set the latest tree information
Source§fn cached(&self, position: &LogTreePosition<TL::LogSize>) -> Option<String>
fn cached(&self, position: &LogTreePosition<TL::LogSize>) -> Option<String>
Get a cached position if known
Source§fn add_cached(&mut self, proofs: &HashMap<LogTreePosition<TL::LogSize>, String>)
fn add_cached(&mut self, proofs: &HashMap<LogTreePosition<TL::LogSize>, String>)
Cache all positions in the HashMap
Auto Trait Implementations§
impl<'a, T, TL> Freeze for InMemoryLogClient<'a, T, TL>
impl<'a, T, TL> RefUnwindSafe for InMemoryLogClient<'a, T, TL>
impl<'a, T, TL> Send for InMemoryLogClient<'a, T, TL>
impl<'a, T, TL> Sync for InMemoryLogClient<'a, T, TL>
impl<'a, T, TL> Unpin for InMemoryLogClient<'a, T, TL>
impl<'a, T, TL> UnwindSafe for InMemoryLogClient<'a, T, TL>
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