Trait MaybeInteropTransaction

Source
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§

Source

fn set_interop_deadline(&self, deadline: u64)

Attach an interop deadline

Source

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

Get attached deadline if any.

Provided Methods§

Source

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

Helper that sets the interop and returns the instance again

Implementors§

Source§

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