#[repr(i32)]pub enum SecType {
Stock = 0,
Option = 1,
Index = 2,
Rate = 3,
Unknown = -1,
}Expand description
Security type identifier.
Unknown is a sentinel for contracts whose shape has not yet been resolved.
The FPSS decoder uses it for the empty-contract placeholder that flows on
data events arriving before their ContractAssigned frame — downstream
consumers can pattern-match sec_type == SecType::Unknown instead of
relying on contract.root.is_empty(). Unknown has no wire-protocol
representation: SecType::from_code never returns it, and it is not
serialized in subscribe payloads.
Variants§
Stock = 0
Option = 1
Index = 2
Rate = 3
Unknown = -1
Unresolved contract shape (client-side sentinel, never sent over the wire).
Implementations§
Trait Implementations§
impl Copy for SecType
impl Eq for SecType
impl StructuralPartialEq for SecType
Auto Trait Implementations§
impl Freeze for SecType
impl RefUnwindSafe for SecType
impl Send for SecType
impl Sync for SecType
impl Unpin for SecType
impl UnsafeUnpin for SecType
impl UnwindSafe for SecType
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