pub struct OperatorRecords {
last_read: Mutex<Option<Vec<OperatorRecordLine>>>,
}Expand description
Every bot.did.operator record the last successful listing of the
operator’s repository read.
An app holding the operator’s session writes as the operator, and their
PDS cannot tell the two apart. So the operator recognising a record they
did not write is the defence, and that needs the records in front of
them: where each one is, who it names, and when its writer says it was
written.
Kept here because the poll already lists them on every tick for
refresh_allowances, and a page that refetched them would put a
remote read behind a panel.
None until a listing has succeeded, which is a different fact from a
repository that holds none.
Fields§
§last_read: Mutex<Option<Vec<OperatorRecordLine>>>Implementations§
Trait Implementations§
Source§impl Debug for OperatorRecords
impl Debug for OperatorRecords
Source§impl Default for OperatorRecords
impl Default for OperatorRecords
Source§fn default() -> OperatorRecords
fn default() -> OperatorRecords
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for OperatorRecords
impl RefUnwindSafe for OperatorRecords
impl Send for OperatorRecords
impl Sync for OperatorRecords
impl Unpin for OperatorRecords
impl UnsafeUnpin for OperatorRecords
impl UnwindSafe for OperatorRecords
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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