MaybeInteropTransaction

Trait MaybeInteropTransaction 

pub trait MaybeInteropTransaction {
    // Required methods
    fn set_interop_deadline(&self, deadline: u64);
    fn interop_deadline(&self) -> Option<u64>;

    // Provided method
    fn with_interop_deadline(self, interop: u64) -> Self
       where Self: Sized { ... }
}
Expand description

Helper trait that allows attaching an interop deadline.

Required Methods§

fn set_interop_deadline(&self, deadline: u64)

Attach an interop deadline

fn interop_deadline(&self) -> Option<u64>

Get attached deadline if any.

Provided Methods§

fn with_interop_deadline(self, interop: u64) -> Self
where Self: Sized,

Helper that sets the interop and returns the instance again

Implementors§

§

impl<Cons, Pooled> MaybeInteropTransaction for OpPooledTransaction<Cons, Pooled>