pub enum ViewError {
Rpc {
source: Status,
},
ApiResponse {
code: i32,
description: String,
},
MissingObjectView,
MissingDataviewBlock {
view_id: String,
},
MissingView {
view_id: String,
},
NotSupportedView {
view_id: String,
actual: i32,
},
}Expand description
Errors from view operations.
Variants§
Rpc
gRPC status error from a request.
ApiResponse
Anytype API returned an error response.
MissingObjectView
Object view missing in response.
MissingDataviewBlock
Dataview block not found for view id.
MissingView
View id not found.
NotSupportedView
View type not supported.
Trait Implementations§
Source§impl Error for ViewError
impl Error for ViewError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for ViewError
impl ErrorCompat for ViewError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<ViewError> for AnytypeGrpcError
impl From<ViewError> for AnytypeGrpcError
Source§impl<__T0, __T1> IntoError<ViewError> for ApiResponseSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<ViewError> for ApiResponseSnafu<__T0, __T1>
Source§impl<__T0> IntoError<ViewError> for MissingDataviewBlockSnafu<__T0>
impl<__T0> IntoError<ViewError> for MissingDataviewBlockSnafu<__T0>
Source§impl IntoError<ViewError> for MissingObjectViewSnafu
impl IntoError<ViewError> for MissingObjectViewSnafu
Source§impl<__T0> IntoError<ViewError> for MissingViewSnafu<__T0>
impl<__T0> IntoError<ViewError> for MissingViewSnafu<__T0>
Source§impl<__T0, __T1> IntoError<ViewError> for NotSupportedViewSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<ViewError> for NotSupportedViewSnafu<__T0, __T1>
Auto Trait Implementations§
impl Freeze for ViewError
impl !RefUnwindSafe for ViewError
impl Send for ViewError
impl Sync for ViewError
impl Unpin for ViewError
impl UnsafeUnpin for ViewError
impl !UnwindSafe for ViewError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request