#[repr(C)]pub struct Price {Show 23 fields
pub magic: u32,
pub ver: u32,
pub atype: u32,
pub size: u32,
pub ptype: PriceType,
pub expo: i32,
pub num: u32,
pub unused: u32,
pub curr_slot: u64,
pub valid_slot: u64,
pub twap: i64,
pub avol: u64,
pub drv0: i64,
pub drv1: i64,
pub drv2: i64,
pub drv3: i64,
pub drv4: i64,
pub drv5: i64,
pub prod: AccKey,
pub next: AccKey,
pub agg_pub: AccKey,
pub agg: PriceInfo,
pub comp: [PriceComp; 32],
}
Fields§
§magic: u32
§ver: u32
§atype: u32
§size: u32
§ptype: PriceType
§expo: i32
§num: u32
§unused: u32
§curr_slot: u64
§valid_slot: u64
§twap: i64
§avol: u64
§drv0: i64
§drv1: i64
§drv2: i64
§drv3: i64
§drv4: i64
§drv5: i64
§prod: AccKey
§next: AccKey
§agg_pub: AccKey
§agg: PriceInfo
§comp: [PriceComp; 32]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Price
impl RefUnwindSafe for Price
impl Send for Price
impl Sync for Price
impl Unpin for Price
impl UnwindSafe for Price
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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