Struct parables_testing::snapshot::Snapshot [−][src]
pub struct Snapshot<T> { /* fields omitted */ }A managed instance that can be shared by cloning across threads.
Methods
impl<T> Snapshot<T>[src]
impl<T> Snapshot<T>pub fn new(inner: T) -> Self[src]
pub fn new(inner: T) -> SelfCreate a new Snapshot value.
pub fn get(&self) -> Result<T, Error> where
T: Clone, [src]
pub fn get(&self) -> Result<T, Error> where
T: Clone, Create a clone of the underlying value and return it.