pub struct RegistryView {
pub current_version: u32,
pub previous_version: u32,
pub previous_expires_at: i64,
pub current_node_count: u32,
pub previous_node_count: u32,
pub last_transition_type: RegistryTransitionType,
pub removed_old_index: u32,
pub moved_old_index: u32,
}Expand description
Plain view of the registry fields needed to resolve and order signers.
The caller builds this from its own registry account (whatever framework it uses).
Fields§
§current_version: u32§previous_version: u32§previous_expires_at: i64§current_node_count: u32§previous_node_count: u32§last_transition_type: RegistryTransitionType§removed_old_index: u32§moved_old_index: u32Implementations§
Source§impl RegistryView
impl RegistryView
Sourcepub fn is_remove_transition(&self) -> bool
pub fn is_remove_transition(&self) -> bool
Whether the last transition removed a node (tail removal or swap removal).
Trait Implementations§
Source§impl Clone for RegistryView
impl Clone for RegistryView
Source§fn clone(&self) -> RegistryView
fn clone(&self) -> RegistryView
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 moreimpl Copy for RegistryView
Auto Trait Implementations§
impl Freeze for RegistryView
impl RefUnwindSafe for RegistryView
impl Send for RegistryView
impl Sync for RegistryView
impl Unpin for RegistryView
impl UnsafeUnpin for RegistryView
impl UnwindSafe for RegistryView
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