pub struct Writers(/* private fields */);Expand description
The other devices that can still write: every device besides this one not gone for good (§14.1), each with the slot whose entry added it, when known. Stored files (§17.10) and kept records (§16.7) wait for the same devices.
Implementations§
Source§impl Writers
impl Writers
Sourcepub fn new(devices: BTreeMap<DeviceId, Option<u64>>) -> Self
pub fn new(devices: BTreeMap<DeviceId, Option<u64>>) -> Self
The devices, each with the slot that added it, when known.
Sourcepub fn through(&self, reads: &BTreeMap<DeviceId, u64>) -> u64
pub fn through(&self, reads: &BTreeMap<DeviceId, u64>) -> u64
The greatest slot every one of these devices has seen: each has landed
a write that read through it, or was added after it, so writes nothing
that read less. reads holds the read_through of each device’s last
landed write, for those that landed one. With no other device, every
slot.
Trait Implementations§
impl Eq for Writers
impl StructuralPartialEq for Writers
Auto Trait Implementations§
impl Freeze for Writers
impl RefUnwindSafe for Writers
impl Send for Writers
impl Sync for Writers
impl Unpin for Writers
impl UnsafeUnpin for Writers
impl UnwindSafe for Writers
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.