pub enum AndError<L, R> {
Left(L),
Right(R),
}Variants§
Trait Implementations§
Source§impl<L, R> Error for AndError<L, R>
impl<L, R> Error for AndError<L, R>
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<L, R> From<AndError<L, R>> for Responsewhere
L: IntoResponse,
R: IntoResponse,
Available on crate feature axum only.
impl<L, R> From<AndError<L, R>> for Responsewhere
L: IntoResponse,
R: IntoResponse,
Available on crate feature
axum only.Source§impl<L, R> IntoResponse for AndError<L, R>where
L: IntoResponse,
R: IntoResponse,
Available on crate feature axum only.
impl<L, R> IntoResponse for AndError<L, R>where
L: IntoResponse,
R: IntoResponse,
Available on crate feature
axum only.Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl<L, R> Freeze for AndError<L, R>
impl<L, R> RefUnwindSafe for AndError<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for AndError<L, R>
impl<L, R> Sync for AndError<L, R>
impl<L, R> Unpin for AndError<L, R>
impl<L, R> UnsafeUnpin for AndError<L, R>where
L: UnsafeUnpin,
R: UnsafeUnpin,
impl<L, R> UnwindSafe for AndError<L, R>where
L: UnwindSafe,
R: UnwindSafe,
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