/// Transact data into one or more inputs.
Transact data into one or more inputs.
Transact data into one or more inputs .
pub fn transact(&mut self, tx_data: Vec<Datom<A>>) -> Result<(), Error> {
        for Datom(e, a, v, t, diff) in tx_data {
            match self.input_sessions.get_mut(&a) {
                None => {
                    return Err(Error::not_found(format!("Attribute {} does not exist.", a)));
                }
                Some(handle) => match t {
                    None => handle.update((e, v), diff),
                    Some(t) => handle.update_at((e, v), t.into(), diff),
                },
            }
        }
        Ok(())
    }
pub fn transact ( & mut self , tx_data : Vec < Datom < A > > ) -> Result < ( ) , Error > { for Datom ( e , a , v , t , diff ) in tx_data { match self . input_sessions . get_mut ( & a ) { None => { return Err ( Error :: not_found ( format ! ( " " a ) ) ) ; } Some ( handle ) => match t { None => handle . update ( ( e , v ) , diff ) , Some ( t ) => handle . update_at ( ( e , v ) , t . into ( ) , diff ) , } , } } Ok ( ( ) ) }
Transact data into one or more inputs.
Transact data into one or more inputs .
&mut self
tx_data
Vec<Datom<A>>