pub enum TriggeredRequestError {
NotAllowed,
Build(Arc<RequestBuildError>),
Send(Arc<RequestError>),
}Expand description
Error occurred while trying to build/execute a triggered request.
This type implements Clone so it can be shared between deduplicated chain
renders, hence the Arcs on inner errors.
Variants§
NotAllowed
This render was invoked in a way that doesn’t support automatic request execution. In some cases the user needs to explicitly opt in to enable it (e.g. with a CLI flag)
Build(Arc<RequestBuildError>)
Tried to auto-execute a chained request but couldn’t build it
Send(Arc<RequestError>)
Chained request was triggered, sent and failed
Trait Implementations§
Source§impl Clone for TriggeredRequestError
impl Clone for TriggeredRequestError
Source§fn clone(&self) -> TriggeredRequestError
fn clone(&self) -> TriggeredRequestError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TriggeredRequestError
impl Debug for TriggeredRequestError
Source§impl Display for TriggeredRequestError
impl Display for TriggeredRequestError
Source§impl Error for TriggeredRequestError
impl Error for TriggeredRequestError
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 From<Arc<RequestBuildError>> for TriggeredRequestError
impl From<Arc<RequestBuildError>> for TriggeredRequestError
Source§fn from(source: Arc<RequestBuildError>) -> Self
fn from(source: Arc<RequestBuildError>) -> Self
Converts to this type from the input type.
Source§impl From<Arc<RequestError>> for TriggeredRequestError
impl From<Arc<RequestError>> for TriggeredRequestError
Source§fn from(source: Arc<RequestError>) -> Self
fn from(source: Arc<RequestError>) -> Self
Converts to this type from the input type.
Source§impl From<RequestBuildError> for TriggeredRequestError
impl From<RequestBuildError> for TriggeredRequestError
Source§fn from(error: RequestBuildError) -> Self
fn from(error: RequestBuildError) -> Self
Converts to this type from the input type.
Source§impl From<RequestError> for TriggeredRequestError
impl From<RequestError> for TriggeredRequestError
Source§fn from(error: RequestError) -> Self
fn from(error: RequestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TriggeredRequestError
impl !RefUnwindSafe for TriggeredRequestError
impl Send for TriggeredRequestError
impl Sync for TriggeredRequestError
impl Unpin for TriggeredRequestError
impl UnsafeUnpin for TriggeredRequestError
impl !UnwindSafe for TriggeredRequestError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.