pub struct HistoryError {
pub error: Error,
pub resume_from: UnixNanos,
}Expand description
A history read stopped. Carries the error and the place to start from again.
§Examples
use brokapi_core::{Error, UnixNanos};
use brokapi_runtime::history::HistoryError;
let e = HistoryError { error: Error::Unknown, resume_from: UnixNanos::ZERO };
assert!(e.to_string().contains("history read stopped"));Fields§
§error: ErrorWhat stopped the read. [Error::class] says whether it makes sense to try again later.
resume_from: UnixNanosThe start of the window that failed. Everything before it was delivered. Start a new
CandlePages with a range from here and nothing is read twice.
Trait Implementations§
Source§impl Clone for HistoryError
impl Clone for HistoryError
Source§fn clone(&self) -> HistoryError
fn clone(&self) -> HistoryError
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 moreSource§impl Debug for HistoryError
impl Debug for HistoryError
Source§impl Display for HistoryError
impl Display for HistoryError
Source§impl Error for HistoryError
impl Error for HistoryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for HistoryError
impl RefUnwindSafe for HistoryError
impl Send for HistoryError
impl Sync for HistoryError
impl Unpin for HistoryError
impl UnsafeUnpin for HistoryError
impl UnwindSafe for HistoryError
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