pub(crate) struct TrackExistence {
locations: Arc<Mutex<TrackLocations>>,
namespace: TrackNamespace,
name: Vec<u8>,
}Expand description
One track’s record of which Objects exist and which do not.
Keyed on the track rather than on an alias, because a FETCH stream names none and its objects are judged against the same record a subscription’s are.
Fields§
§locations: Arc<Mutex<TrackLocations>>§namespace: TrackNamespace§name: Vec<u8>Implementations§
Source§impl TrackExistence
impl TrackExistence
fn locked(&self) -> MutexGuard<'_, TrackLocations>
fn contradicted(&self, found: ObjectLocation) -> EndpointError
fn note_exists(&self, at: ObjectLocation) -> Result<(), EndpointError>
fn note_absent( &self, from: ObjectLocation, to: ObjectLocation, ) -> Result<(), EndpointError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrackExistence
impl RefUnwindSafe for TrackExistence
impl Send for TrackExistence
impl Sync for TrackExistence
impl Unpin for TrackExistence
impl UnsafeUnpin for TrackExistence
impl UnwindSafe for TrackExistence
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