Skip to main content

Error

Enum Error 

Source
pub enum Error {
Show 30 variants Config(String), InvalidRequest(String), Drive(Error), DriveProofError(ProofError, Vec<u8>, BlockInfo), Protocol(ProtocolError), Proof(Error), InvalidProvedResponse(String), ExecutionNotProved(String), DapiClientError(DapiClientError), DapiMocksError(MockError), CoreError(Error), MerkleBlockError(MerkleBlockError), CoreClientError(Error), MissingDependency(String, String), TotalCreditsNotFound, EpochNotFound, TimeoutReached(Duration, String), AlreadyExists(String), InvalidCreditTransfer(String), NonceOverflow(u64), IdentityNonceNotFound(String), DriveInternalError(String), Generic(String), ContextProviderError(ContextProviderError), Cancelled(String), StaleNode(StaleNodeError), StateTransitionBroadcastError(StateTransitionBroadcastError), NoAvailableAddressesToRetry(Box<Error>), EncryptedFor(EncryptedForError), ProtocolVersionNotActive { method: &'static str, required: u32, network: u32, pinned: bool, cause: Option<Box<Error>>, },
}
Expand description

Error type for the SDK

Variants§

§

Config(String)

SDK is not configured properly

§

InvalidRequest(String)

The request cannot succeed as written on any node: the SDK refused it before sending it, because no node serves it or no answer to it verifies as the requested result type, or a fresh verified answer showed that the result cannot be returned as that type (for example several documents for a single-document fetch).

Every honest node answers it alike, so the SDK neither retries it on another node nor bans the node that answered. The request has to change. A node’s own refusal of a request (an INVALID_ARGUMENT status) stays an Error::DapiClientError.

§

Drive(Error)

Drive error

§

DriveProofError(ProofError, Vec<u8>, BlockInfo)

Drive proof error with associated proof bytes and block info

§

Protocol(ProtocolError)

DPP error

§

Proof(Error)

Proof verification error

§

InvalidProvedResponse(String)

Invalid Proved Response error

§

ExecutionNotProved(String)

The proof authenticated only the state the transition affects (a height-pinned snapshot), while the caller required evidence that this specific transition executed. Use the *_affected_state wait APIs to accept snapshot outcomes explicitly.

§

DapiClientError(DapiClientError)

DAPI client error, for example, connection error

§

DapiMocksError(MockError)

DAPI mocks error

§

CoreError(Error)

Dash core error

§

MerkleBlockError(MerkleBlockError)

MerkleBlockError

§

CoreClientError(Error)

Core client error, for example, connection error

§

MissingDependency(String, String)

Dependency not found, for example data contract for a document not found

§

TotalCreditsNotFound

Total credits in Platform are not found; we must always have credits in Platform

§

EpochNotFound

Epoch not found; we must have at least one epoch

§

TimeoutReached(Duration, String)

SDK operation timeout reached error

§

AlreadyExists(String)

Returned when an attempt is made to create an object that already exists in the system

§

InvalidCreditTransfer(String)

Invalid credit transfer configuration

§

NonceOverflow(u64)

Identity nonce overflow: the nonce has reached its maximum value and cannot be incremented further without wrapping to zero.

§

IdentityNonceNotFound(String)

Identity nonce not found on Platform.

Platform returned no nonce for the requested identity (or identity– contract pair). This usually means the queried DAPI node has not yet indexed the identity — for example right after identity creation or when the node is lagging behind the chain tip.

Recovery: retry the state transition; the SDK will re-fetch the nonce from a (potentially different) DAPI node on the next attempt.

§

DriveInternalError(String)

Drive returned an internal error that is not a consensus error.

Contains the decoded human-readable message extracted from the drive-error-data-bin gRPC metadata (CBOR map, message field). Typically a storage-level failure (e.g., GroveDB constraint violation).

§

Generic(String)

Generic error

§

ContextProviderError(ContextProviderError)

Context provider error

§

Cancelled(String)

Operation cancelled - cancel token was triggered, timeout, etc.

§

StaleNode(StaleNodeError)

Remote node is stale; try another server

§

StateTransitionBroadcastError(StateTransitionBroadcastError)

Error returned when trying to broadcast a state transition

§

NoAvailableAddressesToRetry(Box<Error>)

All available addresses have been exhausted (banned due to errors). Contains the last meaningful error that caused addresses to be banned.

§

EncryptedFor(EncryptedForError)

A property declared encryptedFor could not be encrypted or decrypted

§

ProtocolVersionNotActive

The request uses a feature that not every node of the network serves yet, so the SDK refused it without sending it: nodes of an older release would answer UNIMPLEMENTED or a different question, and get banned for it.

Retrying another node cannot help. The same request succeeds once a verified answer shows the network runs required, and this SDK’s own version is at least required. See TransportRequest::needs_protocol_version.

Fields

§method: &'static str

gRPC method of the refused request, e.g. get_contract_fee_pots.

§required: u32

Protocol version from which every node serves the request.

§network: u32

Protocol version the SDK could rely on: the lower of its own version and the newest version a verified answer was signed with; 0 before any verified answer.

§pinned: bool

Whether the SDK is pinned to a version below required (SdkBuilder::with_version): then no answer can lift the refusal, whatever the network runs.

§cause: Option<Box<Error>>

Why the network’s version could not be confirmed, when a query for it failed. The refusal may then be transient.

Implementations§

Source§

impl Error

Source

pub fn is_transient_protocol_version_refusal(&self) -> bool

Whether this is an Error::ProtocolVersionNotActive refusal that may lift soon: the SDK could not learn the network’s version for a reason that can pass, such as nodes or a quorum source not answering, so the network may serve the request already.

False for any other error, for a refusal the network’s verified version explains, and for one caused by this SDK’s own setup: no context provider, or one configured so that it cannot give quorum keys at all (ContextProviderError::Config). Retrying cannot change those. A provider’s other failures, such as a quorum service not answering, may pass.

Source

pub fn is_quorum_source_unavailable(&self) -> bool

Whether this error is a trusted quorum-source failure, looking through nested retry-exhaustion wrappers. This is distinct from [CanRetry::can_retry] and does not affect node-ban attribution.

Source

pub fn consensus_error(&self) -> Option<&ConsensusError>

The consensus verdict this error carries, from the shapes that can carry one: StateTransitionBroadcastError (wait-stream), Protocol(ConsensusError) (CheckTx), and the dapi-client’s exhausted-retry envelope, which it recurses into. Re-audit when this enum gains another consensus-carrying variant.

Trait Implementations§

Source§

impl CanRetry for Error

Source§

fn can_retry(&self) -> bool

Returns true if the operation can be retried safely.
Source§

fn is_no_available_addresses(&self) -> bool

Returns true if this error represents a “no available addresses” condition. Read more
§

fn rate_limit_ban_duration(&self) -> Option<Duration>

If this error is a gRPC ResourceExhausted (Envoy rate-limit) that carries a RateLimit-Reset metadata header, returns the server-advertised ban duration (clamped to a safe range). Returns None for all other errors and for rate-limit errors that carry no usable header (the caller falls back to the normal exponential ban ladder in that case).
§

fn is_node_failure(&self) -> bool

👎Deprecated:

Use !can_retry() instead

Get boolean flag that indicates if the error is retryable. Read more
Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

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 From<AddressDoesNotExistError> for Error

Source§

fn from(value: AddressDoesNotExistError) -> Self

Converts to this type from the input type.
Source§

impl From<AddressNotEnoughFundsError> for Error

Source§

fn from(value: AddressNotEnoughFundsError) -> Self

Converts to this type from the input type.
Source§

impl From<AsyncError> for Error

Source§

fn from(error: AsyncError) -> Self

Converts to this type from the input type.
Source§

impl From<ConsensusError> for Error

Source§

fn from(value: ConsensusError) -> Self

Converts to this type from the input type.
Source§

impl From<ContextProviderError> for Error

Source§

fn from(source: ContextProviderError) -> Self

Converts to this type from the input type.
Source§

impl From<DapiClientError> for Error

Source§

fn from(value: DapiClientError) -> Self

Converts to this type from the input type.
Source§

impl From<EncryptedForError> for Error

Source§

fn from(source: EncryptedForError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

A trusted source outage is not the responding node’s fault. Preserve that attribution and quorum context. A verified result no node can return as the requested type is the request’s to change (Error::InvalidRequest); every other verifier failure stays Proof.

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for InvitationError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl<T> From<ExecutionError<T>> for Error
where ExecutionError<T>: ToString,

Source§

fn from(value: ExecutionError<T>) -> Self

Converts to this type from the input type.
Source§

impl From<MerkleBlockError> for Error

Source§

fn from(source: MerkleBlockError) -> Self

Converts to this type from the input type.
Source§

impl From<MockError> for Error

Source§

fn from(source: MockError) -> Self

Converts to this type from the input type.
Source§

impl From<OutputBelowMinimumError> for Error

Source§

fn from(value: OutputBelowMinimumError) -> Self

Converts to this type from the input type.
Source§

impl From<PlatformVersionError> for Error

Source§

fn from(value: PlatformVersionError) -> Self

Converts to this type from the input type.
Source§

impl From<ProtocolError> for Error

Source§

fn from(source: ProtocolError) -> Self

Converts to this type from the input type.
Source§

impl From<StaleNodeError> for Error

Source§

fn from(source: StaleNodeError) -> Self

Converts to this type from the input type.
Source§

impl From<StateTransitionBroadcastError> for Error

Source§

fn from(source: StateTransitionBroadcastError) -> Self

Converts to this type from the input type.
Source§

impl From<StateTransitionMaxSizeExceededError> for Error

Source§

fn from(value: StateTransitionMaxSizeExceededError) -> Self

Converts to this type from the input type.
Source§

impl From<TransitionNoInputsError> for Error

Source§

fn from(value: TransitionNoInputsError) -> Self

Converts to this type from the input type.
Source§

impl From<TransitionNoOutputsError> for Error

Source§

fn from(value: TransitionNoOutputsError) -> Self

Converts to this type from the input type.
Source§

impl From<ValidationResult<(), ConsensusError>> for Error

Source§

fn from(value: SimpleConsensusValidationResult) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl !RefUnwindSafe for Error

§

impl !UnwindSafe for Error

§

impl Freeze for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnsafeUnpin for Error

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

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

§

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

§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> CostsExt for T

§

fn wrap_with_cost(self, cost: OperationCost) -> CostContext<Self>
where Self: Sized,

Wraps any value into a CostContext object with provided costs.
§

fn wrap_fn_cost( self, f: impl FnOnce(&Self) -> OperationCost, ) -> CostContext<Self>
where Self: Sized,

Wraps any value into CostContext object with costs computed using the value getting wrapped.
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

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

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

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
§

impl<T, U> IntoOnNetwork<U> for T
where U: FromOnNetwork<T>,

§

fn into_on_network(self, network: Network) -> U

Calls U::from_on_network(self).

§

impl<T, U> IntoPlatformVersioned<U> for T
where U: FromPlatformVersioned<T>,

§

fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U

Performs the conversion.
§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

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

impl<L> LayerExt<L> for L

§

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].
§

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

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

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

Initializes a with the given initializer. Read more
§

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

Dereferences the given pointer. Read more
§

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

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
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
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. 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.
§

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

§

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

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

fn try_from_versioned( value: U, _grove_version: &GroveVersion, ) -> Result<T, <T as TryFromVersioned<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.
§

impl<T, U> TryIntoPlatformVersioned<U> for T
where U: TryFromPlatformVersioned<T>,

§

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

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

fn try_into_platform_versioned( self, platform_version: &PlatformVersion, ) -> Result<U, <U as TryFromPlatformVersioned<T>>::Error>

Performs the conversion.
§

impl<T, U> TryIntoVersioned<U> for T
where U: TryFromVersioned<T>,

§

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

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

fn try_into_versioned( self, grove_version: &GroveVersion, ) -> Result<U, <U as TryFromVersioned<T>>::Error>

Performs the conversion.
§

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

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

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