[][src]Struct fbas_analyzer::Fbas

pub struct Fbas { /* fields omitted */ }

Implementations

impl Fbas[src]

impl Fbas[src]

pub fn new() -> Self[src]

FBAS of 0 nodes.

pub fn new_generic_unconfigured(n: usize) -> Self[src]

FBAS of n nodes with empty quorum sets

pub fn add_node(&mut self, node: Node) -> NodeId[src]

pub fn add_generic_node(&mut self, quorum_set: QuorumSet) -> NodeId[src]

Add a node with generic public_key

pub fn number_of_nodes(&self) -> usize[src]

pub fn all_nodes(&self) -> NodeIdSet[src]

pub fn is_quorum(&self, node_set: &NodeIdSet) -> bool[src]

impl Fbas[src]

pub fn from_json_str(json: &str) -> Self[src]

pub fn from_json_file(path: &Path) -> Self[src]

pub fn from_json_stdin() -> Self[src]

pub fn to_json_string(&self) -> String[src]

pub fn to_json_string_pretty(&self) -> String[src]

impl Fbas[src]

pub fn shrunken(fbas: &Self, ids_to_keep: NodeIdSet) -> (Self, ShrinkManager)[src]

Trait Implementations

impl Clone for Fbas[src]

impl Debug for Fbas[src]

impl Default for Fbas[src]

impl<'de> Deserialize<'de> for Fbas[src]

impl Display for Fbas[src]

impl Eq for Fbas[src]

impl PartialEq<Fbas> for Fbas[src]

impl Serialize for Fbas[src]

impl StructuralEq for Fbas[src]

impl StructuralPartialEq for Fbas[src]

Auto Trait Implementations

impl RefUnwindSafe for Fbas

impl Send for Fbas

impl Sync for Fbas

impl Unpin for Fbas

impl UnwindSafe for Fbas

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,