Enum SourceSetting
pub(crate) enum SourceSetting {
Unset,
Offline,
Source(DataSource),
}Expand description
A market’s data source: none set, offline by choice, or a source.
Variants§
Unset
No source was set, here or as the process default.
Offline
Offline by choice: the market never fetches.
Source(DataSource)
The market fetches from this source.
Implementations§
§impl SourceSetting
impl SourceSetting
pub(crate) fn from_default() -> Self
pub(crate) fn from_default() -> Self
The process default, as a market being built copies it.
pub(crate) fn source(&self) -> Option<&DataSource>
pub(crate) fn source(&self) -> Option<&DataSource>
The source, where there is one.
Trait Implementations§
§impl Clone for SourceSetting
impl Clone for SourceSetting
§fn clone(&self) -> SourceSetting
fn clone(&self) -> SourceSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for SourceSetting
impl Debug for SourceSetting
§impl Default for SourceSetting
impl Default for SourceSetting
§fn default() -> SourceSetting
fn default() -> SourceSetting
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SourceSetting
impl !UnwindSafe for SourceSetting
impl Freeze for SourceSetting
impl Send for SourceSetting
impl Sync for SourceSetting
impl Unpin for SourceSetting
impl UnsafeUnpin for SourceSetting
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