[−][src]Struct terminus_store::store::StoreLayerBuilder
A wrapper over a SimpleLayerBuilder, providing a thread-safe sharable interface
The SimpleLayerBuilder requires one to have a mutable reference to it, and on commit it will be consumed. This builder only requires an immutable reference, and uses a futures-aware read-write lock to synchronize access to it between threads. Also, rather than consuming itself on commit, this wrapper will simply mark itself as having committed, returning errors on further calls.
Methods
impl StoreLayerBuilder
[src]
pub fn name(&self) -> [u32; 5]
[src]
Returns the name of the layer being built
pub fn add_string_triple(
&self,
triple: &StringTriple
) -> impl Future<Item = (), Error = Error> + Send
[src]
&self,
triple: &StringTriple
) -> impl Future<Item = (), Error = Error> + Send
Add a string triple
pub fn add_id_triple(
&self,
triple: IdTriple
) -> impl Future<Item = bool, Error = Error> + Send
[src]
&self,
triple: IdTriple
) -> impl Future<Item = bool, Error = Error> + Send
Add an id triple
pub fn remove_string_triple(
&self,
triple: &StringTriple
) -> impl Future<Item = bool, Error = Error> + Send
[src]
&self,
triple: &StringTriple
) -> impl Future<Item = bool, Error = Error> + Send
Remove a string triple
pub fn remove_id_triple(
&self,
triple: IdTriple
) -> impl Future<Item = bool, Error = Error> + Send
[src]
&self,
triple: IdTriple
) -> impl Future<Item = bool, Error = Error> + Send
Remove an id triple
pub fn committed(&self) -> impl Future<Item = bool, Error = Error> + Send
[src]
pub fn commit(&self) -> impl Future<Item = StoreLayer, Error = Error> + Send
[src]
Commit the layer to storage
Auto Trait Implementations
impl !RefUnwindSafe for StoreLayerBuilder
impl Send for StoreLayerBuilder
impl Sync for StoreLayerBuilder
impl Unpin for StoreLayerBuilder
impl !UnwindSafe for StoreLayerBuilder
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, 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>,