pub struct CoordinatorCapabilities {
pub schemes: Vec<String>,
pub algorithms: Vec<String>,
pub max_threshold: u32,
pub max_party_count: u32,
pub supports_batch: bool,
pub supports_idempotency: bool,
pub supports_backpressure: bool,
pub protocol_version: u32,
}Expand description
Capabilities a coordinator supports.
Fields§
§schemes: Vec<String>Supported threshold schemes.
algorithms: Vec<String>Supported algorithms.
max_threshold: u32Maximum threshold the coordinator can handle.
max_party_count: u32Maximum party count.
supports_batch: boolWhether batch signing is supported.
supports_idempotency: boolWhether idempotency keys are supported.
supports_backpressure: boolWhether backpressure enforcement is active.
protocol_version: u32Protocol version.
Implementations§
Source§impl CoordinatorCapabilities
impl CoordinatorCapabilities
Sourcepub fn supports_scheme(&self, scheme: &str) -> bool
pub fn supports_scheme(&self, scheme: &str) -> bool
Check if a scheme is supported.
Sourcepub fn supports_algorithm(&self, alg: &str) -> bool
pub fn supports_algorithm(&self, alg: &str) -> bool
Check if an algorithm is supported.
Sourcepub fn supports_config(&self, threshold: u32, party_count: u32) -> bool
pub fn supports_config(&self, threshold: u32, party_count: u32) -> bool
Check if a threshold/party combination is within limits.
Trait Implementations§
Source§impl Clone for CoordinatorCapabilities
impl Clone for CoordinatorCapabilities
Source§fn clone(&self) -> CoordinatorCapabilities
fn clone(&self) -> CoordinatorCapabilities
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 CoordinatorCapabilities
impl Debug for CoordinatorCapabilities
Source§impl Default for CoordinatorCapabilities
impl Default for CoordinatorCapabilities
Source§impl<'de> Deserialize<'de> for CoordinatorCapabilities
impl<'de> Deserialize<'de> for CoordinatorCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CoordinatorCapabilities
impl RefUnwindSafe for CoordinatorCapabilities
impl Send for CoordinatorCapabilities
impl Sync for CoordinatorCapabilities
impl Unpin for CoordinatorCapabilities
impl UnsafeUnpin for CoordinatorCapabilities
impl UnwindSafe for CoordinatorCapabilities
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