#[non_exhaustive]pub struct RpcFailure { /* private fields */ }Expand description
Machine-readable RPC failure with no arbitrary provider or debug message.
Implementations§
Source§impl RpcFailure
impl RpcFailure
Sourcepub fn application(
code: impl Into<String>,
retryable: bool,
) -> Result<Self, ClientContractError>
pub fn application( code: impl Into<String>, retryable: bool, ) -> Result<Self, ClientContractError>
Creates an application failure from the bounded lowercase dotted-code
grammar, such as counter.limit_reached.
Trait Implementations§
Source§impl Clone for RpcFailure
impl Clone for RpcFailure
Source§impl Debug for RpcFailure
impl Debug for RpcFailure
Source§impl Display for RpcFailure
impl Display for RpcFailure
impl Eq for RpcFailure
Source§impl Error for RpcFailure
impl Error for RpcFailure
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 PartialEq for RpcFailure
impl PartialEq for RpcFailure
impl StructuralPartialEq for RpcFailure
Auto Trait Implementations§
impl Freeze for RpcFailure
impl RefUnwindSafe for RpcFailure
impl Send for RpcFailure
impl Sync for RpcFailure
impl Unpin for RpcFailure
impl UnsafeUnpin for RpcFailure
impl UnwindSafe for RpcFailure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP