Skip to main content

AnytypeError

Enum AnytypeError 

Source
pub enum AnytypeError {
Show 36 variants Http { method: String, url: String, source: Error, outcome: Option<TimeoutOutcome>, elapsed: Option<Duration>, attempts: Option<u32>, }, HttpTimeout { class: HttpTimeoutClass, outcome: TimeoutOutcome, method: String, path: String, elapsed: Duration, attempts: u32, }, HttpMutationIndeterminate { method: String, path: String, attempts: u32, status: Option<u16>, }, ApiError { code: u16, method: String, url: String, message: String, }, ResponseTooLarge { limit: u64, declared: Option<u64>, }, FileHeaderEvidenceTooLarge { limit: u64, status: u16, }, InvalidFileResponseHeader { status: u16, header: &'static str, issue: &'static str, }, ChatSseEventTooLarge { limit: u64, }, ChatSseTransport { path: String, }, ChatTimestamp { field: ChatTimestampField, }, ChatHistoryEvidence { kind: ChatHistoryEvidenceKind, }, ChatEditTimestampNotAdvanced, TooManyRetries { n: u32, }, Auth { message: String, }, Deserialization { source: Error, }, Serialization { source: Error, }, NotFound { obj_type: String, key: String, }, Ambiguous { obj_type: String, key: String, candidates: Vec<ResolveCandidate>, }, ResolutionLimitExceeded { obj_type: String, key: String, limit: usize, }, Unauthorized, Forbidden, RateLimitExceeded { header: String, duration: Duration, }, Validation { message: String, }, NoKeyStore, Grpc { source: AnytypeGrpcError, }, GrpcUnavailable { message: String, }, KeyStore { source: KeyStoreError, }, CacheDisabled, BodyGraph { object_id: String, kind: BodyGraphErrorKind, detail: String, }, BodyMutationIndeterminate { object_id: String, block_id: Option<BlockId>, attempts: usize, timeout: Duration, observed: Option<Box<BodySnapshot>>, }, BodyRpcLifecycle { kind: BodyRpcLifecycleErrorKind, }, CollectionMembershipEvidence { kind: CollectionMembershipEvidenceKind, }, TypePropertyClassification { kind: TypePropertyClassificationErrorKind, }, AttachedDiscussion { kind: AttachedDiscussionErrorKind, }, VerifyTimeout { obj_type: String, key: String, attempts: usize, timeout: Duration, last_error: Option<String>, }, Other { message: String, },
}
Expand description

Errors returned by the Anytype crate.

Display, Debug, and the standard error source chain intentionally omit every free-form string and typed upstream source that could contain request or document content. Match the public variants and fields when an application explicitly needs raw values; use AnytypeError::diagnostic for ordinary logs and telemetry. Error text is therefore classification-oriented and is not a stable parsing contract.

Variants§

§

Http

Fields

§method: String
§url: String

Original request target retained for programmatic inspection. Use AnytypeError::diagnostic before logging it.

§source: Error

Raw transport source retained for explicit programmatic matching. It is omitted from standard formatting and the error source chain.

§outcome: Option<TimeoutOutcome>

Timeout outcome when the transport source is a caller timeout.

§elapsed: Option<Duration>

Elapsed logical-operation time when measured.

§attempts: Option<u32>

Physical sends when measured.

§

HttpTimeout

A library logical HTTP deadline expired.

The server may continue work after the caller receives this error.

Fields

§class: HttpTimeoutClass

Expired logical deadline class.

§outcome: TimeoutOutcome

Effect on the logical operation.

§method: String

Sanitized HTTP method.

§path: String

Original target retained for programmatic inspection and sanitized before formatting.

§elapsed: Duration

Elapsed logical operation time.

§attempts: u32

Number of physical sends before expiration.

§

HttpMutationIndeterminate

A non-timeout transport failure left a mutation outcome indeterminate.

Fields

§method: String

Sanitized HTTP method.

§path: String

Original target retained for programmatic inspection and sanitized before formatting.

§attempts: u32

Number of physical sends before failure.

§status: Option<u16>

Completed ambiguous server status, or None for transport failure.

§

ApiError

Anytype Server responded with error. This error usually means the request was invalid, or there was an internal server error.

Fields

§code: u16
§method: String
§url: String

Original request target retained for programmatic inspection. Use AnytypeError::diagnostic before logging it.

§message: String

Bounded upstream response text for explicit programmatic handling.

This may contain document data or credentials supplied by an untrusted server. It is deliberately omitted from Display, Debug, and AnytypeError::diagnostic.

§

ResponseTooLarge

A buffered HTTP response exceeded its configured byte ceiling.

The error intentionally contains no response body, URL, request body, or credential-bearing value, so callers may classify it safely.

Fields

§limit: u64

Maximum response bytes permitted for this operation.

§declared: Option<u64>

Server-declared length when one was available.

§

FileHeaderEvidenceTooLarge

Allowlisted file response headers exceeded the caller’s evidence budget.

Fields

§limit: u64

Maximum retained allowlisted header bytes for this request.

§status: u16

HTTP response status retained without any header or body value.

§

InvalidFileResponseHeader

An allowlisted file response header was structurally invalid.

Fields

§status: u16

HTTP response status retained without the response body.

§header: &'static str

Fixed allowlisted header name.

§issue: &'static str

Fixed validation classification such as duplicate or malformed.

§

ChatSseEventTooLarge

A chat SSE event exceeded its configured incremental buffer ceiling.

No event bytes, URL, credentials, or upstream body are retained.

Fields

§limit: u64

Maximum bytes permitted for one buffered event, including delimiter.

§

ChatSseTransport

A chat SSE transport failed after the stream was opened.

The raw transport error is deliberately discarded because reqwest may retain a credential- or query-bearing URL in its error source.

Fields

§path: String

Path-only diagnostic without authority, query, or fragment.

§

ChatTimestamp

A REST or gRPC chat message contained an invalid timestamp.

Raw timestamp values and message identities are omitted so this fixed classification is safe for diagnostics.

Fields

§field: ChatTimestampField

Message field whose wire value could not be represented canonically.

§

ChatHistoryEvidence

An older-history REST page did not provide complete bounded evidence.

Fields

§kind: ChatHistoryEvidenceKind

Closed, payload-free classification of the failed evidence check.

§

ChatEditTimestampNotAdvanced

A supported chat edit changed content without advancing modified_at.

§

TooManyRetries

Encountered server error on “retryable” request, but all retry attempts failed.

Fields

§

Auth

Authorization error.

The raw message remains available for explicit programmatic matching, but standard formatting omits it because it may contain request data.

Fields

§message: String
§

Deserialization

Deserialization error. This means we didn’t deserialize a server response correctly. If you see this error, please report it as a bug.

Fields

§source: Error
§

Serialization

Serialization error. unlikely to occur. If you see this error, please report it as a bug.

Fields

§source: Error
§

NotFound

Expected item was not found. Returned for any object get by id, or property or type lookup by unique key, or tag lookup by property and name.

Fields

§obj_type: String
§

Ambiguous

A name matched more than one item. Returned by the resolve_* helpers (see the resolve module) when a space, type, chat, or view name is not unique in its scope. Use the id (or, for types, the @key form) to disambiguate.

Fields

§obj_type: String
§candidates: Vec<ResolveCandidate>

Deterministically ordered, deduplicated alternatives that callers can present when asking the user to disambiguate.

§

ResolutionLimitExceeded

A resolver could not prove a unique or missing result within its hard upstream scan bound. Retry with an id or an explicit unique key.

Fields

§obj_type: String
§limit: usize
§

Unauthorized

Client is not authenticated.

§

Forbidden

Client is authenticated, but user does not have proper authorization

§

RateLimitExceeded

Too many requests occurred. See the anytype rate limit documentation.

When the Anytype server responds with HTTP 429, the HTTP client throttles and retries only replay-safe methods until the server stops returning errors, or up to rate_limit_max_retries times before giving up and returning this error to the client. The config setting rate_limit_max_retries can be increased to handle arbitrary-sized bursts, with the result that the app may spend more time waiting. If rate_limit_max_retries is zero, replay-safe requests wait and retry without a retry-count cap. Non-idempotent mutation requests are never replayed automatically and instead return their original 429 failure.

Fields

§header: String

Raw bounded header value retained for explicit programmatic use. It is omitted from all standard diagnostics.

§duration: Duration
§

Validation

Validation error: an internal parameter validation check failed.

The raw message remains available for explicit programmatic matching, but standard formatting omits it because validation context can contain request or document data.

Fields

§message: String
§

NoKeyStore

A KeyStore has not been configured. This is an AnytypeError rather than a KeyStoreError, because it is a client configuration error

§

Grpc

gRPC auth or transport error.

The typed source remains available for explicit programmatic matching, but standard formatting and the error source chain omit it because upstream statuses can contain response or request data.

Fields

§

GrpcUnavailable

gRPC auth is unavailable (missing config or account key).

Fields

§message: String
§

KeyStore

Error encountered by the configured KeyStore.

The typed source remains available for explicit programmatic matching, but standard formatting and the error source chain omit it because it can contain paths, environment names, or backend error text.

Fields

§

CacheDisabled

A function requiring the cache failed because the cache is disabled.

§

BodyGraph

A body-block read failed graph validation (see body): the returned block graph was duplicate, dangling, shared, cyclic, orphaned, oversized, or malformed. The read fails whole; a partial tree is never returned.

detail contains only block IDs and structural counts.

Fields

§object_id: String

Object whose body failed validation.

§kind: BodyGraphErrorKind

Closed violation classification.

§detail: String

Bounded ID-and-count-only context for explicit programmatic use.

§

BodyMutationIndeterminate

A body-block write may have reached the server but its exact final state could not be proved within finite verification bounds.

Callers must perform a fresh body read before deciding whether any retry is safe. Standard formatting redacts object and block identity; observed is the last complete, validated snapshot when one was read.

Fields

§object_id: String

Object whose body may have changed.

§block_id: Option<BlockId>

Requested or server-returned affected block ID, when known.

§attempts: usize

Number of completed fresh verification reads.

§timeout: Duration

Finite mutation/verification timeout.

§observed: Option<Box<BodySnapshot>>

Last complete validated body snapshot, when available.

§

BodyRpcLifecycle

A finite body gRPC lifecycle failed without retaining upstream payloads.

Fields

§kind: BodyRpcLifecycleErrorKind

Closed lifecycle classification.

§

CollectionMembershipEvidence

A direct collection-membership read could not establish complete, identity-bound evidence.

This variant never represents absence. Callers must treat it as an indeterminate observation and must not use it to justify retrying a preceding mutation.

Fields

§kind: CollectionMembershipEvidenceKind

Closed, payload-free classification of the failed evidence check.

§

TypePropertyClassification

A finite type-property classification could not complete its owned ObjectShow/ObjectClose lifecycle.

Fields

§kind: TypePropertyClassificationErrorKind

Closed payload-free lifecycle failure classification.

§

AttachedDiscussion

A bounded attached-discussion operation failed without exposing identity or upstream payload data.

Fields

§kind: AttachedDiscussionErrorKind

Closed, payload-free failure classification.

§

VerifyTimeout

The previous operation could not be confirmed within the expected time interval. For more information, see the notes about eventual consistency in the project README.

Fields

§obj_type: String
§attempts: usize
§timeout: Duration
§last_error: Option<String>
§

Other

Some other error occurred.

The raw message remains available for explicit programmatic matching, but standard formatting omits it because callers may have included request or document data.

Fields

§message: String

Implementations§

Source§

impl AnytypeError

Source

pub fn diagnostic(&self) -> AnytypeDiagnostic

Returns structured diagnostic context with all payload-bearing fields removed and every request target reduced to a bounded path.

Source

pub fn is_authentication(&self) -> bool

Returns whether this failure is structurally classified as authentication.

This predicate covers the public HTTP/configuration authentication variants and authentication failures nested below Self::Grpc. It deliberately examines only typed variants and gRPC status categories; it never formats or parses upstream messages, URLs, response bodies, or credential-bearing values. Callers therefore do not need to depend on anytype-rpc merely to choose secret-safe authentication guidance.

Source

pub fn resolve_candidates(&self) -> Option<&[ResolveCandidate]>

Returns bounded alternatives for an ambiguous resolver lookup.

The slice contains at most MAX_RESOLVE_CANDIDATES entries. Other error variants return None.

Trait Implementations§

Source§

impl Debug for AnytypeError

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for AnytypeError

Source§

fn fmt(&self, __snafu_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for AnytypeError
where Self: Debug + Display,

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl ErrorCompat for AnytypeError

Source§

fn backtrace(&self) -> Option<&Backtrace>

Returns a Backtrace that may be printed.
Source§

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 more
Source§

impl From<AnytypeGrpcError> for AnytypeError

Source§

fn from(source: AnytypeGrpcError) -> Self

Converts to this type from the input type.
Source§

impl From<KeyStoreError> for AnytypeError

Source§

fn from(source: KeyStoreError) -> Self

Converts to this type from the input type.
Source§

impl<__T0, __T1, __T2, __T3, __T4, __T5> IntoError<AnytypeError> for HttpSnafu<__T0, __T1, __T2, __T3, __T4, __T5>
where AnytypeError: Error + ErrorCompat, __T0: Into<String>, __T1: Into<String>, __T2: Into<Error>, __T3: Into<Option<TimeoutOutcome>>, __T4: Into<Option<Duration>>, __T5: Into<Option<u32>>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1, __T2, __T3, __T4, __T5> IntoError<AnytypeError> for HttpTimeoutSnafu<__T0, __T1, __T2, __T3, __T4, __T5>
where AnytypeError: Error + ErrorCompat, __T0: Into<HttpTimeoutClass>, __T1: Into<TimeoutOutcome>, __T2: Into<String>, __T3: Into<String>, __T4: Into<Duration>, __T5: Into<u32>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1, __T2, __T3> IntoError<AnytypeError> for HttpMutationIndeterminateSnafu<__T0, __T1, __T2, __T3>
where AnytypeError: Error + ErrorCompat, __T0: Into<String>, __T1: Into<String>, __T2: Into<u32>, __T3: Into<Option<u16>>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1, __T2, __T3> IntoError<AnytypeError> for ApiSnafu<__T0, __T1, __T2, __T3>
where AnytypeError: Error + ErrorCompat, __T0: Into<u16>, __T1: Into<String>, __T2: Into<String>, __T3: Into<String>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1> IntoError<AnytypeError> for ResponseTooLargeSnafu<__T0, __T1>
where AnytypeError: Error + ErrorCompat, __T0: Into<u64>, __T1: Into<Option<u64>>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1> IntoError<AnytypeError> for FileHeaderEvidenceTooLargeSnafu<__T0, __T1>
where AnytypeError: Error + ErrorCompat, __T0: Into<u64>, __T1: Into<u16>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1, __T2> IntoError<AnytypeError> for InvalidFileResponseHeaderSnafu<__T0, __T1, __T2>
where AnytypeError: Error + ErrorCompat, __T0: Into<u16>, __T1: Into<&'static str>, __T2: Into<&'static str>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for ChatSseEventTooLargeSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for ChatSseTransportSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for ChatTimestampSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for ChatHistoryEvidenceSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl IntoError<AnytypeError> for ChatEditTimestampNotAdvancedSnafu

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for TooManyRetriesSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for AuthSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for DeserializationSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for SerializationSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1> IntoError<AnytypeError> for NotFoundSnafu<__T0, __T1>
where AnytypeError: Error + ErrorCompat, __T0: Into<String>, __T1: Into<String>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1, __T2> IntoError<AnytypeError> for AmbiguousSnafu<__T0, __T1, __T2>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1, __T2> IntoError<AnytypeError> for ResolutionLimitExceededSnafu<__T0, __T1, __T2>
where AnytypeError: Error + ErrorCompat, __T0: Into<String>, __T1: Into<String>, __T2: Into<usize>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl IntoError<AnytypeError> for UnauthorizedSnafu

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl IntoError<AnytypeError> for ForbiddenSnafu

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1> IntoError<AnytypeError> for RateLimitExceededSnafu<__T0, __T1>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for ValidationSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl IntoError<AnytypeError> for NoKeyStoreSnafu

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for GrpcSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for GrpcUnavailableSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for KeyStoreSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl IntoError<AnytypeError> for CacheDisabledSnafu

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1, __T2> IntoError<AnytypeError> for BodyGraphSnafu<__T0, __T1, __T2>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1, __T2, __T3, __T4> IntoError<AnytypeError> for BodyMutationIndeterminateSnafu<__T0, __T1, __T2, __T3, __T4>
where AnytypeError: Error + ErrorCompat, __T0: Into<String>, __T1: Into<Option<BlockId>>, __T2: Into<usize>, __T3: Into<Duration>, __T4: Into<Option<Box<BodySnapshot>>>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for BodyRpcLifecycleSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for CollectionMembershipEvidenceSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for TypePropertyClassificationSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for AttachedDiscussionSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0, __T1, __T2, __T3, __T4> IntoError<AnytypeError> for VerifyTimeoutSnafu<__T0, __T1, __T2, __T3, __T4>
where AnytypeError: Error + ErrorCompat, __T0: Into<String>, __T1: Into<String>, __T2: Into<usize>, __T3: Into<Duration>, __T4: Into<Option<String>>,

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error
Source§

impl<__T0> IntoError<AnytypeError> for OtherSnafu<__T0>

Source§

type Source = NoneError

The underlying error
Source§

fn into_error(self, error: Self::Source) -> AnytypeError

Combine the information to produce the error

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsErrorSource for T
where T: Error + 'static,

Source§

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> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<K, Q> Comparable<Q> for K
where K: Borrow<Q> + ?Sized, Q: Ord + ?Sized,

Source§

fn compare(&self, key: &Q) -> Ordering

Compare self to key and return their ordering.
Source§

impl<K, Q> Equivalent<Q> for K
where K: Borrow<Q> + ?Sized, Q: Eq + ?Sized,

Source§

fn equivalent(&self, key: &Q) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more