[−][src]Struct splinter::circuit::SplinterState
Methods
impl SplinterState
[src]
pub fn new(
storage_location: String,
circuit_directory: CircuitDirectory
) -> Self
[src]
storage_location: String,
circuit_directory: CircuitDirectory
) -> Self
pub fn storage_location(&self) -> &str
[src]
pub fn get_service(
&self,
id: &ServiceId
) -> Result<Option<Service>, SplinterStateError>
[src]
&self,
id: &ServiceId
) -> Result<Option<Service>, SplinterStateError>
pub fn has_service(&self, id: &ServiceId) -> Result<bool, SplinterStateError>
[src]
pub fn add_service(
&self,
service_id: ServiceId,
service: Service
) -> Result<(), SplinterStateError>
[src]
&self,
service_id: ServiceId,
service: Service
) -> Result<(), SplinterStateError>
pub fn remove_service(
&self,
service_id: &ServiceId
) -> Result<(), SplinterStateError>
[src]
&self,
service_id: &ServiceId
) -> Result<(), SplinterStateError>
pub fn circuit_directory(&self) -> Result<CircuitDirectory, SplinterStateError>
[src]
pub fn add_node(
&mut self,
id: String,
node: SplinterNode
) -> Result<(), SplinterStateError>
[src]
&mut self,
id: String,
node: SplinterNode
) -> Result<(), SplinterStateError>
pub fn add_circuit(
&mut self,
name: String,
circuit: Circuit
) -> Result<(), SplinterStateError>
[src]
&mut self,
name: String,
circuit: Circuit
) -> Result<(), SplinterStateError>
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]
&self
) -> Result<BTreeMap<String, SplinterNode>, SplinterStateError>
pub fn node(
&self,
node_id: &str
) -> Result<Option<SplinterNode>, SplinterStateError>
[src]
&self,
node_id: &str
) -> Result<Option<SplinterNode>, SplinterStateError>
pub fn circuits(&self) -> Result<BTreeMap<String, Circuit>, SplinterStateError>
[src]
pub fn circuit(
&self,
circuit_name: &str
) -> Result<Option<Circuit>, SplinterStateError>
[src]
&self,
circuit_name: &str
) -> Result<Option<Circuit>, SplinterStateError>
pub fn has_circuit(
&self,
circuit_name: &str
) -> Result<bool, SplinterStateError>
[src]
&self,
circuit_name: &str
) -> Result<bool, SplinterStateError>
Trait Implementations
impl CircuitStore for SplinterState
[src]
fn circuits(
&self,
filter: Option<CircuitFilter>
) -> Result<CircuitIter, CircuitStoreError>
[src]
&self,
filter: Option<CircuitFilter>
) -> Result<CircuitIter, CircuitStoreError>
fn circuit(
&self,
circuit_name: &str
) -> Result<Option<Circuit>, CircuitStoreError>
[src]
&self,
circuit_name: &str
) -> Result<Option<Circuit>, CircuitStoreError>
impl Clone for SplinterState
[src]
fn clone(&self) -> SplinterState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for SplinterState
impl Send for SplinterState
impl Sync for SplinterState
impl Unpin for SplinterState
impl UnwindSafe for SplinterState
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<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
T: 'a + Clone + Send + Sync,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
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<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,