pub struct ValidDescriptor { /* private fields */ }Expand description
A descriptor that passed rule 1 and the descriptor parts of rule 5.
Implementations§
Source§impl ValidDescriptor
impl ValidDescriptor
Sourcepub const fn descriptor(&self) -> &Signed<CommunityDescriptor>
pub const fn descriptor(&self) -> &Signed<CommunityDescriptor>
The verified descriptor.
Sourcepub fn accepted_state(&self, previous: Option<&AcceptedState>) -> AcceptedState
pub fn accepted_state(&self, previous: Option<&AcceptedState>) -> AcceptedState
The state to store after accepting this descriptor alone (for example a suspension):
the delegation part is carried over from previous.
Trait Implementations§
Source§impl Clone for ValidDescriptor
impl Clone for ValidDescriptor
Source§fn clone(&self) -> ValidDescriptor
fn clone(&self) -> ValidDescriptor
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 Debug for ValidDescriptor
impl Debug for ValidDescriptor
impl Eq for ValidDescriptor
Source§impl PartialEq for ValidDescriptor
impl PartialEq for ValidDescriptor
impl StructuralPartialEq for ValidDescriptor
Auto Trait Implementations§
impl Freeze for ValidDescriptor
impl RefUnwindSafe for ValidDescriptor
impl Send for ValidDescriptor
impl Sync for ValidDescriptor
impl Unpin for ValidDescriptor
impl UnsafeUnpin for ValidDescriptor
impl UnwindSafe for ValidDescriptor
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