pub struct ValidPair { /* private fields */ }Expand description
A (descriptor, delegation) pair valid at the time it was checked, with the state to store.
Only validate_pair creates one.
Implementations§
Source§impl ValidPair
impl ValidPair
Sourcepub const fn descriptor(&self) -> &Signed<CommunityDescriptor>
pub const fn descriptor(&self) -> &Signed<CommunityDescriptor>
The verified descriptor.
Sourcepub const fn delegation(&self) -> &Signed<HostDelegation>
pub const fn delegation(&self) -> &Signed<HostDelegation>
The verified delegation.
Sourcepub const fn state(&self) -> &AcceptedState
pub const fn state(&self) -> &AcceptedState
The anti-rollback state to store for the community after accepting this pair.
Trait Implementations§
impl Eq for ValidPair
impl StructuralPartialEq for ValidPair
Auto Trait Implementations§
impl Freeze for ValidPair
impl RefUnwindSafe for ValidPair
impl Send for ValidPair
impl Sync for ValidPair
impl Unpin for ValidPair
impl UnsafeUnpin for ValidPair
impl UnwindSafe for ValidPair
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