pub enum FailSafeMode {
FailOpen,
FailClosed,
}Expand description
Policy governing trading blackout behavior when calendar data is unavailable, empty, or stale.
Variants§
FailOpen
Permissive mode: if calendar data is unavailable or stale, assume no economic blackout is active (fail open).
FailClosed
Defensive mode: if calendar data is unavailable or stale, assume blackout is active (fail closed). Halts automated trading during data feed outages to protect prop firm accounts from disqualification.
Implementations§
Source§impl FailSafeMode
impl FailSafeMode
Sourcepub fn is_fail_closed(&self) -> bool
pub fn is_fail_closed(&self) -> bool
Returns true if this policy dictates failing closed (blackout on data loss).
Sourcepub fn is_fail_open(&self) -> bool
pub fn is_fail_open(&self) -> bool
Returns true if this policy dictates failing open (allow trading on data loss).
Trait Implementations§
Source§impl Clone for FailSafeMode
impl Clone for FailSafeMode
impl Copy for FailSafeMode
Source§impl Debug for FailSafeMode
impl Debug for FailSafeMode
Source§impl Default for FailSafeMode
impl Default for FailSafeMode
Source§impl<'de> Deserialize<'de> for FailSafeMode
impl<'de> Deserialize<'de> for FailSafeMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FailSafeMode
impl Display for FailSafeMode
impl Eq for FailSafeMode
Source§impl PartialEq for FailSafeMode
impl PartialEq for FailSafeMode
Source§impl Serialize for FailSafeMode
impl Serialize for FailSafeMode
impl StructuralPartialEq for FailSafeMode
Auto Trait Implementations§
impl Freeze for FailSafeMode
impl RefUnwindSafe for FailSafeMode
impl Send for FailSafeMode
impl Sync for FailSafeMode
impl Unpin for FailSafeMode
impl UnsafeUnpin for FailSafeMode
impl UnwindSafe for FailSafeMode
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