pub struct CancelAllOrdersTxInfo {
pub context: TxContext,
pub time_in_force: u8,
pub scheduled_time_ms: i64,
pub skip_nonce: u8,
}Expand description
CancelAllOrders (tx_type = 16): account-wide cancel directive.
Body fields mirror the SignCancelAllOrders(int cTimeInForce, long long int cTime, ...) FFI signature in the upstream cgo header. time_in_force
is one of crate::common::enums::LighterCancelAllTimeInForce (Immediate,
Scheduled, AbortScheduled); scheduled_time_ms is the wall-clock instant
the sequencer should fire the cancel at, in milliseconds (ignored for
Immediate).
Like CancelOrderTxInfo, the FFI wrapper for this kind passes only
skip_nonce, so only that attribute is carried.
Fields§
§context: TxContextCommon preamble fields.
time_in_force: u8Cancel scheduling discriminant (Immediate, Scheduled, AbortScheduled).
scheduled_time_ms: i64Scheduled fire time in milliseconds. 0 for Immediate.
skip_nonce: u81 to instruct the sequencer to skip nonce bookkeeping for this tx.
Trait Implementations§
Source§impl Clone for CancelAllOrdersTxInfo
impl Clone for CancelAllOrdersTxInfo
Source§fn clone(&self) -> CancelAllOrdersTxInfo
fn clone(&self) -> CancelAllOrdersTxInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CancelAllOrdersTxInfo
Source§impl Debug for CancelAllOrdersTxInfo
impl Debug for CancelAllOrdersTxInfo
impl Eq for CancelAllOrdersTxInfo
Source§impl Hash for CancelAllOrdersTxInfo
impl Hash for CancelAllOrdersTxInfo
Source§impl LighterTx for CancelAllOrdersTxInfo
impl LighterTx for CancelAllOrdersTxInfo
Source§fn tx_type(&self) -> LighterTxType
fn tx_type(&self) -> LighterTxType
Source§fn attributes(&self) -> L2TxAttributes
fn attributes(&self) -> L2TxAttributes
Source§fn push_body_elements(&self, elems: &mut Vec<Fp>)
fn push_body_elements(&self, elems: &mut Vec<Fp>)
Source§impl PartialEq for CancelAllOrdersTxInfo
impl PartialEq for CancelAllOrdersTxInfo
Source§fn eq(&self, other: &CancelAllOrdersTxInfo) -> bool
fn eq(&self, other: &CancelAllOrdersTxInfo) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CancelAllOrdersTxInfo
Auto Trait Implementations§
impl Freeze for CancelAllOrdersTxInfo
impl RefUnwindSafe for CancelAllOrdersTxInfo
impl Send for CancelAllOrdersTxInfo
impl Sync for CancelAllOrdersTxInfo
impl Unpin for CancelAllOrdersTxInfo
impl UnsafeUnpin for CancelAllOrdersTxInfo
impl UnwindSafe for CancelAllOrdersTxInfo
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more