[−][src]Struct splinter::service::scabbard::ScabbardFactory
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]
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
Trait Implementations
impl ServiceFactory for ScabbardFactory
[src]
fn available_service_types(&self) -> &[String]
[src]
fn create(
&self,
service_id: String,
_service_type: &str,
circuit_id: &str,
args: HashMap<String, String>
) -> Result<Box<dyn Service>, FactoryCreateError>
[src]
&self,
service_id: String,
_service_type: &str,
circuit_id: &str,
args: HashMap<String, String>
) -> Result<Box<dyn Service>, FactoryCreateError>
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 stringspeer_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)
fn get_rest_endpoints(&self) -> Vec<ServiceEndpoint>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ScabbardFactory
impl Send for ScabbardFactory
impl !Sync for ScabbardFactory
impl Unpin for ScabbardFactory
impl !UnwindSafe for ScabbardFactory
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,