pub enum InvokeError<E>where
E: EncodeError,{
EncodeFailed {
cause: E,
},
LambdaError(LambdaError),
}Expand description
An error occurred while invoking a Lambda function.
Variants§
EncodeFailed
An error occurred while encoding the provided payload.
Fields
§
cause: EThe underlying encode error.
LambdaError(LambdaError)
An error occurred when calling the host invoke function.
Trait Implementations§
Source§impl<E> Debug for InvokeError<E>where
E: EncodeError + Debug,
impl<E> Debug for InvokeError<E>where
E: EncodeError + Debug,
Source§impl<E> Display for InvokeError<E>where
E: EncodeError,
impl<E> Display for InvokeError<E>where
E: EncodeError,
Source§impl<E> Error for InvokeError<E>
impl<E> Error for InvokeError<E>
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<E> From<LambdaError> for InvokeError<E>where
E: EncodeError,
impl<E> From<LambdaError> for InvokeError<E>where
E: EncodeError,
Source§fn from(source: LambdaError) -> Self
fn from(source: LambdaError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for InvokeError<E>where
E: Freeze,
impl<E> RefUnwindSafe for InvokeError<E>where
E: RefUnwindSafe,
impl<E> Send for InvokeError<E>where
E: Send,
impl<E> Sync for InvokeError<E>where
E: Sync,
impl<E> Unpin for InvokeError<E>where
E: Unpin,
impl<E> UnwindSafe for InvokeError<E>where
E: 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