pub struct OtxPool { /* private fields */ }Implementations§
Source§impl OtxPool
impl OtxPool
pub fn new(notify_ctrl: NotifyController) -> Self
pub fn insert(&self, otx: OpenTransaction) -> InnerResult<H256>
pub fn get_otx_by_id(&self, id: H256) -> Option<OpenTxWithStatus>
pub fn update_otx_status(&self, id: &H256, status: OpenTxStatus)
pub fn insert_sent_tx(&self, tx_hash: H256, otx_hashes: Vec<H256>)
pub fn get_otxs_by_merged_otx_id(&self, id: &H256) -> Vec<OpenTxWithStatus>
Auto Trait Implementations§
impl Freeze for OtxPool
impl !RefUnwindSafe for OtxPool
impl Send for OtxPool
impl Sync for OtxPool
impl Unpin for OtxPool
impl !UnwindSafe for OtxPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more