pub enum TimelineError {
AuthRequired,
ApiError(ClassifiedError),
}Expand description
Error type for timeline operations
Variants§
AuthRequired
Authentication is required but not available
ApiError(ClassifiedError)
API call failed with a classified error
Implementations§
Source§impl TimelineError
impl TimelineError
Sourcepub fn to_error_code(&self) -> ErrorCode
pub fn to_error_code(&self) -> ErrorCode
Convert to ErrorCode for protocol
Trait Implementations§
Source§impl Debug for TimelineError
impl Debug for TimelineError
Source§impl Display for TimelineError
impl Display for TimelineError
Source§impl Error for TimelineError
impl Error for TimelineError
1.30.0 · 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()
Source§impl From<&TimelineError> for ErrorCode
Convenience: build ErrorCode from TimelineError (for use in other modules)
impl From<&TimelineError> for ErrorCode
Convenience: build ErrorCode from TimelineError (for use in other modules)
Source§fn from(e: &TimelineError) -> Self
fn from(e: &TimelineError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TimelineError
impl RefUnwindSafe for TimelineError
impl Send for TimelineError
impl Sync for TimelineError
impl Unpin for TimelineError
impl UnsafeUnpin for TimelineError
impl UnwindSafe for TimelineError
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