pub struct SignatureSetWithThreshold {
pub inner: SignatureSet,
pub threshold: u32,
}Expand description
Extended SignatureSet with threshold for runtime validation Since the generated SignatureSet doesn’t have a threshold field in the YAML, we’ll simulate threshold semantics by treating all signatures as requiring consensus
Fields§
§inner: SignatureSet§threshold: u32Implementations§
Source§impl SignatureSetWithThreshold
impl SignatureSetWithThreshold
pub fn new(inner: SignatureSet, threshold: u32) -> Result<Self, SigRuntimeError>
Trait Implementations§
Source§impl Clone for SignatureSetWithThreshold
impl Clone for SignatureSetWithThreshold
Source§fn clone(&self) -> SignatureSetWithThreshold
fn clone(&self) -> SignatureSetWithThreshold
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SignatureSetWithThreshold
impl RefUnwindSafe for SignatureSetWithThreshold
impl Send for SignatureSetWithThreshold
impl Sync for SignatureSetWithThreshold
impl Unpin for SignatureSetWithThreshold
impl UnsafeUnpin for SignatureSetWithThreshold
impl UnwindSafe for SignatureSetWithThreshold
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