[][src]Struct splinter::circuit::SplinterState

pub struct SplinterState { /* fields omitted */ }

Methods

impl SplinterState[src]

pub fn new(
    storage_location: String,
    circuit_directory: CircuitDirectory
) -> Self
[src]

pub fn storage_location(&self) -> &str[src]

pub fn get_service(
    &self,
    id: &ServiceId
) -> Result<Option<Service>, SplinterStateError>
[src]

pub fn has_service(&self, id: &ServiceId) -> Result<bool, SplinterStateError>[src]

pub fn add_service(
    &self,
    service_id: ServiceId,
    service: Service
) -> Result<(), SplinterStateError>
[src]

pub fn remove_service(
    &self,
    service_id: &ServiceId
) -> Result<(), SplinterStateError>
[src]

pub fn circuit_directory(&self) -> Result<CircuitDirectory, SplinterStateError>[src]

pub fn add_node(
    &mut self,
    id: String,
    node: SplinterNode
) -> Result<(), SplinterStateError>
[src]

pub fn add_circuit(
    &mut self,
    name: String,
    circuit: Circuit
) -> Result<(), SplinterStateError>
[src]

pub fn remove_node(&mut self, id: &str) -> Result<(), SplinterStateError>[src]

pub fn remove_circuit(&mut self, name: &str) -> Result<(), SplinterStateError>[src]

pub fn nodes(
    &self
) -> Result<BTreeMap<String, SplinterNode>, SplinterStateError>
[src]

pub fn node(
    &self,
    node_id: &str
) -> Result<Option<SplinterNode>, SplinterStateError>
[src]

pub fn circuits(&self) -> Result<BTreeMap<String, Circuit>, SplinterStateError>[src]

pub fn circuit(
    &self,
    circuit_name: &str
) -> Result<Option<Circuit>, SplinterStateError>
[src]

pub fn has_circuit(
    &self,
    circuit_name: &str
) -> Result<bool, SplinterStateError>
[src]

Trait Implementations

impl CircuitStore for SplinterState[src]

impl Clone for SplinterState[src]

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<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

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<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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