Enum barter_data::error::DataError
source · pub enum DataError {
Socket(SocketError),
InvalidSequence {
prev_last_update_id: u64,
first_update_id: u64,
},
}Expand description
All errors generated in barter-data.
Variants§
Implementations§
source§impl DataError
impl DataError
sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Determine if an error requires a MarketStream to re-initialise.
Trait Implementations§
source§impl Error for DataError
impl Error for DataError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<SocketError> for DataError
impl From<SocketError> for DataError
source§fn from(source: SocketError) -> Self
fn from(source: SocketError) -> Self
Converts to this type from the input type.