pub struct HashtreeNostrBoundedEventCache<S> { /* private fields */ }Implementations§
Source§impl<S> HashtreeNostrBoundedEventCache<S>
impl<S> HashtreeNostrBoundedEventCache<S>
pub fn new( store: Arc<S>, root: Option<Cid>, source: EventSource, retention: EventRetentionPolicy, ) -> Self
pub fn with_priority(self, priority: i32) -> Self
pub async fn root_cid(&self) -> Option<Cid>
pub fn source(&self) -> &EventSource
pub fn retention(&self) -> &EventRetentionPolicy
pub fn source_route(&self, dataset_id: impl Into<String>) -> Result<SourceRoute>
Trait Implementations§
Source§impl<S: Clone> Clone for HashtreeNostrBoundedEventCache<S>
impl<S: Clone> Clone for HashtreeNostrBoundedEventCache<S>
Source§fn clone(&self) -> HashtreeNostrBoundedEventCache<S>
fn clone(&self) -> HashtreeNostrBoundedEventCache<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> EventBus for HashtreeNostrBoundedEventCache<S>where
S: Store + 'static,
impl<S> EventBus for HashtreeNostrBoundedEventCache<S>where
S: Store + 'static,
fn publish<'life0, 'async_trait>(
&'life0 self,
event: VerifiedEvent,
_source: EventSource,
) -> Pin<Box<dyn Future<Output = Result<PublishReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query<'life0, 'async_trait>(
&'life0 self,
filters: Vec<Filter>,
options: QueryOptions,
) -> Pin<Box<dyn Future<Output = Result<QueryReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<S> !RefUnwindSafe for HashtreeNostrBoundedEventCache<S>
impl<S> !UnwindSafe for HashtreeNostrBoundedEventCache<S>
impl<S> Freeze for HashtreeNostrBoundedEventCache<S>
impl<S> Send for HashtreeNostrBoundedEventCache<S>
impl<S> Sync for HashtreeNostrBoundedEventCache<S>
impl<S> Unpin for HashtreeNostrBoundedEventCache<S>
impl<S> UnsafeUnpin for HashtreeNostrBoundedEventCache<S>
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> 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