Struct mentat_ffi::InProgressBuilder
[−]
[src]
pub struct InProgressBuilder<'a, 'c> { /* fields omitted */ }
Methods
impl<'a, 'c> InProgressBuilder<'a, 'c>
[src]
impl<'a, 'c> InProgressBuilder<'a, 'c>
pub fn new(in_progress: InProgress<'a, 'c>) -> InProgressBuilder<'a, 'c>
[src]
pub fn new(in_progress: InProgress<'a, 'c>) -> InProgressBuilder<'a, 'c>
pub fn transact(self) -> (InProgress<'a, 'c>, Result<TxReport, MentatError>)
[src]
pub fn transact(self) -> (InProgress<'a, 'c>, Result<TxReport, MentatError>)
Build the terms from this builder and transact them against the current
InProgress
. This method always returns the InProgress
-- failure doesn't
imply an automatic rollback.
pub fn commit(self) -> Result<TxReport, MentatError>
[src]
pub fn commit(self) -> Result<TxReport, MentatError>
Transact the contents of the builder and commit the InProgress
. If any
step fails, roll back. Return the TxReport
.
impl<'a, 'c> InProgressBuilder<'a, 'c>
[src]
impl<'a, 'c> InProgressBuilder<'a, 'c>
pub fn add_kw<E, V>(
&mut self,
e: E,
a: &Keyword,
v: V
) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
[src]
pub fn add_kw<E, V>(
&mut self,
e: E,
a: &Keyword,
v: V
) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
pub fn retract_kw<E, V>(
&mut self,
e: E,
a: &Keyword,
v: V
) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
[src]
pub fn retract_kw<E, V>(
&mut self,
e: E,
a: &Keyword,
v: V
) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
Trait Implementations
impl<'a, 'c> BuildTerms for InProgressBuilder<'a, 'c>
[src]
impl<'a, 'c> BuildTerms for InProgressBuilder<'a, 'c>
fn named_tempid(&mut self, name: String) -> Rc<TempId>
[src]
fn named_tempid(&mut self, name: String) -> Rc<TempId>
fn describe_tempid(self, name: &str) -> EntityBuilder<InProgressBuilder<'a, 'c>>
[src]
fn describe_tempid(self, name: &str) -> EntityBuilder<InProgressBuilder<'a, 'c>>
fn describe<E>(self, entity: E) -> EntityBuilder<InProgressBuilder<'a, 'c>> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
[src]
fn describe<E>(self, entity: E) -> EntityBuilder<InProgressBuilder<'a, 'c>> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
fn add<E, V>(&mut self, e: E, a: KnownEntid, v: V) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
[src]
fn add<E, V>(&mut self, e: E, a: KnownEntid, v: V) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
fn retract<E, V>(
&mut self,
e: E,
a: KnownEntid,
v: V
) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
[src]
fn retract<E, V>(
&mut self,
e: E,
a: KnownEntid,
v: V
) -> Result<(), MentatError> where
E: IntoThing<Either<KnownEntid, Rc<TempId>>>,
V: IntoThing<Either<TypedValue, Rc<TempId>>>,
Auto Trait Implementations
impl<'a, 'c> !Send for InProgressBuilder<'a, 'c>
impl<'a, 'c> !Send for InProgressBuilder<'a, 'c>
impl<'a, 'c> !Sync for InProgressBuilder<'a, 'c>
impl<'a, 'c> !Sync for InProgressBuilder<'a, 'c>