Struct scabbard::service::ScabbardFactory [−][src]
pub struct ScabbardFactory { /* fields omitted */ }
Implementations
impl ScabbardFactory
[src]
impl ScabbardFactory
[src]Trait Implementations
impl ServiceFactory for ScabbardFactory
[src]
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]
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 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)version
: the protocol version for scabbard (possible values: “1”, “2”) (default: “1”)
fn available_service_types(&self) -> &[String]
[src]
fn available_service_types(&self) -> &[String]
[src]Return the available service types that this factory can create.
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]pub fn into_bytes(Self) -> Result<Vec<u8, Global>, ProtoConversionError>
[src]
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]
impl<P, N> IntoBytes<P> for N where
P: Message + FromNative<N>,
[src]pub fn into_bytes(self) -> Result<Vec<u8, Global>, ProtoConversionError>
[src]
impl<N, P> IntoNative<N> for P where
N: FromProto<P>,
[src]
impl<N, P> IntoNative<N> for P where
N: FromProto<P>,
[src]pub fn into_native(Self) -> Result<N, ProtoConversionError>
[src]
impl<N, P> IntoNative<N> for P where
N: FromProto<P>,
[src]
impl<N, P> IntoNative<N> for P where
N: FromProto<P>,
[src]pub fn into_native(self) -> Result<N, ProtoConversionError>
[src]
impl<N, P> IntoProto<P> for N where
P: FromNative<N>,
[src]
impl<N, P> IntoProto<P> for N where
P: FromNative<N>,
[src]pub fn into_proto(Self) -> Result<P, ProtoConversionError>
[src]
impl<N, P> IntoProto<P> for N where
P: FromNative<N>,
[src]
impl<N, P> IntoProto<P> for N where
P: FromNative<N>,
[src]pub fn into_proto(self) -> Result<P, ProtoConversionError>
[src]
impl<T> SafeBorrow<T> for T where
T: ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
pub fn borrow_replacement(ptr: &T) -> &T
Given ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,