pub struct PrivateEventStore { /* private fields */ }Expand description
Stores decrypted private event logs with filtering and reorg support.
Implementations§
Source§impl PrivateEventStore
impl PrivateEventStore
pub fn new(kv: Arc<dyn KvStore>) -> PrivateEventStore
Sourcepub async fn store_private_event_log(
&self,
event: &StoredPrivateEvent,
scope: &AztecAddress,
) -> Result<(), Error>
pub async fn store_private_event_log( &self, event: &StoredPrivateEvent, scope: &AztecAddress, ) -> Result<(), Error>
Store a private event log.
Sourcepub async fn get_private_events(
&self,
event_selector: &EventSelector,
filter: &PrivateEventQueryFilter,
) -> Result<Vec<StoredPrivateEvent>, Error>
pub async fn get_private_events( &self, event_selector: &EventSelector, filter: &PrivateEventQueryFilter, ) -> Result<Vec<StoredPrivateEvent>, Error>
Get private events matching a filter.
Auto Trait Implementations§
impl Freeze for PrivateEventStore
impl !RefUnwindSafe for PrivateEventStore
impl Send for PrivateEventStore
impl Sync for PrivateEventStore
impl Unpin for PrivateEventStore
impl !UnwindSafe for PrivateEventStore
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<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