pub struct OvernightWhitelistCache { /* private fields */ }Expand description
Shared per-broker overnight whitelist cache.
Implementations§
Source§impl OvernightWhitelistCache
impl OvernightWhitelistCache
pub fn new() -> Self
pub fn is_stock_in_whitelist(&self, broker_id: u32, stock_id: u64) -> bool
pub fn broker_hash(&self, broker_id: u32) -> Option<String>
pub fn update_interval_secs(&self, broker_id: u32) -> Option<u64>
pub fn set_whitelist( &self, broker_id: u32, hash: Option<String>, stock_ids: impl IntoIterator<Item = u64>, update_interval_secs: Option<u64>, )
Trait Implementations§
Source§impl Clone for OvernightWhitelistCache
impl Clone for OvernightWhitelistCache
Source§fn clone(&self) -> OvernightWhitelistCache
fn clone(&self) -> OvernightWhitelistCache
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OvernightWhitelistCache
impl Debug for OvernightWhitelistCache
Source§impl Default for OvernightWhitelistCache
impl Default for OvernightWhitelistCache
Source§fn default() -> OvernightWhitelistCache
fn default() -> OvernightWhitelistCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OvernightWhitelistCache
impl !RefUnwindSafe for OvernightWhitelistCache
impl Send for OvernightWhitelistCache
impl Sync for OvernightWhitelistCache
impl Unpin for OvernightWhitelistCache
impl UnsafeUnpin for OvernightWhitelistCache
impl !UnwindSafe for OvernightWhitelistCache
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