pub enum ViewError {
Auth {
source: AuthError,
},
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§
Auth
Authentication token attachment failed before request dispatch.
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 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 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 IntoError<ViewError> for AuthViewSnafu
impl IntoError<ViewError> for AuthViewSnafu
Source§impl<__T0, __T1> IntoError<ViewError> for ApiResponseSnafu<__T0, __T1>
impl<__T0, __T1> IntoError<ViewError> for ApiResponseSnafu<__T0, __T1>
Source§impl IntoError<ViewError> for MissingObjectViewSnafu
impl IntoError<ViewError> for MissingObjectViewSnafu
Source§impl<__T0> IntoError<ViewError> for MissingDataviewBlockSnafu<__T0>
impl<__T0> IntoError<ViewError> for MissingDataviewBlockSnafu<__T0>
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 !RefUnwindSafe for ViewError
impl !UnwindSafe for ViewError
impl Freeze for ViewError
impl Send for ViewError
impl Sync for ViewError
impl Unpin for ViewError
impl UnsafeUnpin 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