[][src]Struct splinter::service::scabbard::ScabbardFactory

pub struct ScabbardFactory { /* fields omitted */ }

Methods

impl ScabbardFactory[src]

pub fn new(
    state_db_dir: Option<String>,
    state_db_size: Option<usize>,
    receipt_db_dir: Option<String>,
    receipt_db_size: Option<usize>,
    signature_verifier_factory: Box<dyn SignatureVerifierFactory>
) -> Self
[src]

Trait Implementations

impl ServiceFactory for ScabbardFactory[src]

fn create(
    &self,
    service_id: String,
    _service_type: &str,
    circuit_id: &str,
    args: HashMap<String, String>
) -> Result<Box<dyn Service>, FactoryCreateError>
[src]

args must include the following:

  • admin_keys: list of public keys that are allowed to create and modify sabre contracts, formatted as a serialized JSON array of strings
  • peer_services: list of other scabbard services on the same circuit that this service will share state with

args may include the following optional entries:

  • coordinator_timeout: the length of time (in milliseconds) that the network has to commit a proposal before the coordinator rejects it (if not provided, default is 30 seconds)

Auto Trait Implementations

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> From<T> for T[src]

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

impl<T> IntoSql for T

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,