pub struct LazyEventsTracker { /* private fields */ }Trait Implementations§
Source§impl Debug for LazyEventsTracker
impl Debug for LazyEventsTracker
Source§impl Default for LazyEventsTracker
impl Default for LazyEventsTracker
Source§impl NostrDatabase for LazyEventsTracker
impl NostrDatabase for LazyEventsTracker
Source§fn delete(
&self,
filter: Filter,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>>
fn delete( &self, filter: Filter, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + '_>>
Forget events by id, so a later copy of one counts as new. Only by id: the tracker keeps nothing else to match a filter against.
Source§fn save_event<'a>(
&'a self,
event: &'a Event,
) -> Pin<Box<dyn Future<Output = Result<SaveEventStatus, Error>> + Send + 'a>>
fn save_event<'a>( &'a self, event: &'a Event, ) -> Pin<Box<dyn Future<Output = Result<SaveEventStatus, Error>> + Send + 'a>>
Source§fn check_id<'a>(
&'a self,
event_id: &'a EventId,
) -> Pin<Box<dyn Future<Output = Result<DatabaseEventStatus, Error>> + Send + 'a>>
fn check_id<'a>( &'a self, event_id: &'a EventId, ) -> Pin<Box<dyn Future<Output = Result<DatabaseEventStatus, Error>> + Send + 'a>>
Check event status by ID Read more
Source§fn event_by_id<'a>(
&'a self,
_event_id: &'a EventId,
) -> Pin<Box<dyn Future<Output = Result<Option<Event>, Error>> + Send + 'a>>
fn event_by_id<'a>( &'a self, _event_id: &'a EventId, ) -> Pin<Box<dyn Future<Output = Result<Option<Event>, Error>> + Send + 'a>>
Source§fn count(
&self,
_filter: Filter,
) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + '_>>
fn count( &self, _filter: Filter, ) -> Pin<Box<dyn Future<Output = Result<usize, Error>> + Send + '_>>
Source§fn query(
&self,
_filter: Filter,
) -> Pin<Box<dyn Future<Output = Result<BTreeSet<Event>, Error>> + Send + '_>>
fn query( &self, _filter: Filter, ) -> Pin<Box<dyn Future<Output = Result<BTreeSet<Event>, Error>> + Send + '_>>
Query stored events.
Auto Trait Implementations§
impl !Freeze for LazyEventsTracker
impl Forget for LazyEventsTracker
impl Move for LazyEventsTracker
impl RefUnwindSafe for LazyEventsTracker
impl Send for LazyEventsTracker
impl Sync for LazyEventsTracker
impl Unpin for LazyEventsTracker
impl UnsafeUnpin for LazyEventsTracker
impl UnwindSafe for LazyEventsTracker
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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