pub(crate) struct Rbac509InsertQuery {
pub(crate) registrations: Vec<Params>,
pub(crate) invalid: Vec<Params>,
catalyst_id_for_txn_id: Vec<Params>,
catalyst_id_for_stake_address: Vec<Params>,
catalyst_id_for_public_key: Vec<Params>,
}Expand description
Index RBAC 509 Registration Query Parameters
Fields§
§registrations: Vec<Params>RBAC Registration Data captured during indexing.
invalid: Vec<Params>An invalid RBAC registration data.
catalyst_id_for_txn_id: Vec<Params>A Catalyst ID for transaction ID Data captured during indexing.
catalyst_id_for_stake_address: Vec<Params>A Catalyst ID for stake address data captured during indexing.
catalyst_id_for_public_key: Vec<Params>A Catalyst ID for public key data captured during indexing.
Implementations§
Source§impl Rbac509InsertQuery
impl Rbac509InsertQuery
Sourcepub(crate) fn new() -> Self
pub(crate) fn new() -> Self
Creates new data set for RBAC 509 Registrations Insert Query Batch.
Sourcepub(crate) async fn prepare_batch(
session: &Arc<Session>,
cfg: &EnvVars,
) -> Result<(SkipMap<u16, Arc<Batch>>, SkipMap<u16, Arc<Batch>>, SkipMap<u16, Arc<Batch>>, SkipMap<u16, Arc<Batch>>, SkipMap<u16, Arc<Batch>>)>
pub(crate) async fn prepare_batch( session: &Arc<Session>, cfg: &EnvVars, ) -> Result<(SkipMap<u16, Arc<Batch>>, SkipMap<u16, Arc<Batch>>, SkipMap<u16, Arc<Batch>>, SkipMap<u16, Arc<Batch>>, SkipMap<u16, Arc<Batch>>)>
Prepare Batch of Insert RBAC 509 Registration Data Queries
Sourcepub(crate) async fn index(
&mut self,
txn_hash: TransactionId,
index: TxnIndex,
block: &MultiEraBlock,
pending_blocks: &mut Receiver<BTreeSet<Slot>>,
our_end: Slot,
context: &mut RbacBlockIndexingContext,
) -> Result<()>
pub(crate) async fn index( &mut self, txn_hash: TransactionId, index: TxnIndex, block: &MultiEraBlock, pending_blocks: &mut Receiver<BTreeSet<Slot>>, our_end: Slot, context: &mut RbacBlockIndexingContext, ) -> Result<()>
Index the RBAC 509 registrations in a transaction.
Sourceasync fn try_record_chain_update(
&mut self,
reg: &Cip509,
previous_txn: TransactionId,
is_persistent: bool,
context: &mut RbacBlockIndexingContext,
) -> Result<()>
async fn try_record_chain_update( &mut self, reg: &Cip509, previous_txn: TransactionId, is_persistent: bool, context: &mut RbacBlockIndexingContext, ) -> Result<()>
Validating the provided registration as an update for an existing chain, preparing corresponding updates
Sourceasync fn try_record_new_chain(
&mut self,
reg: &Cip509,
is_persistent: bool,
context: &mut RbacBlockIndexingContext,
) -> Result<()>
async fn try_record_new_chain( &mut self, reg: &Cip509, is_persistent: bool, context: &mut RbacBlockIndexingContext, ) -> Result<()>
Validating the provided registration as a beginning of a new chain, preparing corresponding updates
Sourcefn record_valid_registration(
&mut self,
txn_hash: TransactionId,
index: TxnIndex,
slot: Slot,
catalyst_id: CatalystId,
previous_transaction: Option<TransactionId>,
stake_addresses: HashSet<StakeAddress>,
public_keys: HashSet<VerifyingKey>,
modified_chains: HashMap<CatalystId, HashSet<StakeAddress>>,
purpose: Option<UuidV4>,
context: &mut RbacBlockIndexingContext,
)
fn record_valid_registration( &mut self, txn_hash: TransactionId, index: TxnIndex, slot: Slot, catalyst_id: CatalystId, previous_transaction: Option<TransactionId>, stake_addresses: HashSet<StakeAddress>, public_keys: HashSet<VerifyingKey>, modified_chains: HashMap<CatalystId, HashSet<StakeAddress>>, purpose: Option<UuidV4>, context: &mut RbacBlockIndexingContext, )
Making corresponding records according to the valid registration
Sourcefn record_invalid_registration(
&mut self,
txn_hash: TransactionId,
index: TxnIndex,
slot: Slot,
catalyst_id: CatalystId,
previous_transaction: Option<TransactionId>,
purpose: Option<UuidV4>,
report: ProblemReport,
)
fn record_invalid_registration( &mut self, txn_hash: TransactionId, index: TxnIndex, slot: Slot, catalyst_id: CatalystId, previous_transaction: Option<TransactionId>, purpose: Option<UuidV4>, report: ProblemReport, )
Making corresponding records according to the valid registration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rbac509InsertQuery
impl RefUnwindSafe for Rbac509InsertQuery
impl Send for Rbac509InsertQuery
impl Sync for Rbac509InsertQuery
impl Unpin for Rbac509InsertQuery
impl UnwindSafe for Rbac509InsertQuery
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Conv for T
impl<T> Conv for T
§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>
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>
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§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
§impl<T> SoM<T> for T
impl<T> SoM<T> for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.