pub struct LifespanReader { /* private fields */ }Expand description
One reader’s lifespan judgement over one reading of one provider’s resource (§2.6): the subscription’s lifetime, or a tool’s window. It remembers, per stamping clock, the stamp furthest ahead, so that a clock that falsified the deployment’s word stays unobservable for the rest of the reading.
Implementations§
Source§impl LifespanReader
impl LifespanReader
Sourcepub fn new(
kind: Kind,
d: &Declaration,
epsilon: Option<Duration>,
owners: impl IntoIterator<Item = u128>,
) -> Self
pub fn new( kind: Kind, d: &Declaration, epsilon: Option<Duration>, owners: impl IntoIterator<Item = u128>, ) -> Self
A reader of a resource of kind and declaration d, under the
deployment’s stated bound epsilon (None when none is stated,
never the HLC’s delta), attributing stamps to the owners’ zids:
the meta.zid of each instance of the provider’s address it holds a
descriptor of.
Sourcepub fn set_owners(&mut self, owners: impl IntoIterator<Item = u128>)
pub fn set_owners(&mut self, owners: impl IntoIterator<Item = u128>)
The owners’ zids now held, when the reader reads another descriptor.
Trait Implementations§
Source§impl Clone for LifespanReader
impl Clone for LifespanReader
Auto Trait Implementations§
impl Forget for LifespanReader
impl Freeze for LifespanReaderwhere
*const LeafNode<u128, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(u128, SetValZST)>>: Freeze,
*const LeafNode<u128, ClockMeasure> is !null: Freeze,
PhantomData<Box<(u128, ClockMeasure)>>: Freeze,
impl Move for LifespanReader
impl RefUnwindSafe for LifespanReader
impl Send for LifespanReaderwhere
NodeRef<Owned, u128, SetValZST, LeafOrInternal>: Send,
BoxRaw<(u128, SetValZST)>: Send,
NodeRef<Owned, u128, ClockMeasure, LeafOrInternal>: Send,
BoxRaw<(u128, ClockMeasure)>: Send,
impl Sync for LifespanReaderwhere
NodeRef<Owned, u128, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(u128, SetValZST)>: Sync,
NodeRef<Owned, u128, ClockMeasure, LeafOrInternal>: Sync,
BoxRaw<(u128, ClockMeasure)>: Sync,
impl Unpin for LifespanReader
impl UnsafeUnpin for LifespanReaderwhere
*const LeafNode<u128, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(u128, SetValZST)>>: UnsafeUnpin,
*const LeafNode<u128, ClockMeasure> is !null: UnsafeUnpin,
PhantomData<Box<(u128, ClockMeasure)>>: UnsafeUnpin,
impl UnwindSafe for LifespanReader
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more