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§
Sourcefn set_interop_deadline(&self, deadline: u64)
fn set_interop_deadline(&self, deadline: u64)
Attach an interop deadline
Sourcefn interop_deadline(&self) -> Option<u64>
fn interop_deadline(&self) -> Option<u64>
Get attached deadline if any.
Provided Methods§
Sourcefn with_interop_deadline(self, interop: u64) -> Selfwhere
Self: Sized,
fn with_interop_deadline(self, interop: u64) -> Selfwhere
Self: Sized,
Helper that sets the interop and returns the instance again