pub struct Reader { /* private fields */ }Expand description
Read-only access returning an owned item history.
This handle intentionally has no method that returns Store, Appender,
or Replacer.
ⓘ
use reef_core::transcript::{item, store};
let reader = store::Store::new().reader();
reader.append(item::Item::System(item::System::new(
String::new(), String::new(), item::ModelVisibility::Visible,
)));Implementations§
Source§impl Reader
impl Reader
Sourcepub fn items(&self) -> Result<Vec<Item>, Error>
pub fn items(&self) -> Result<Vec<Item>, Error>
Returns an owned copy of the complete ordered history.
§Errors
Error::Poisoned if a writer panicked while holding the store lock.
Reading is otherwise infallible: the history is already a closed Item
sequence, so there is nothing here to validate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Reader
impl RefUnwindSafe for Reader
impl Send for Reader
impl Sync for Reader
impl Unpin for Reader
impl UnsafeUnpin for Reader
impl UnwindSafe for Reader
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