pub enum CallFunctionError {
Error(Error),
DependentError(Arc<SeqError>),
}
Expand description
When a worker runs any function, it may not succeed either because the function itself failed (Error) or because an input to the function already had an error value DependentError.
Variants§
Implementations§
Source§impl CallFunctionError
impl CallFunctionError
pub fn RefNotFound(r: Ref) -> Self
pub fn InvalidRemoteFunction(msg: String) -> Self
pub fn UnsupportedArgType(function_type: String, arg_type: String) -> Self
pub fn RemoteFunctionFailed(err: SerializablePyErr) -> Self
pub fn BorrowError(err: BorrowError) -> Self
pub fn OperatorFailed(err: CallOpError) -> Self
pub fn UnexpectedNumberOfReturns(expected: usize, actual: usize) -> Self
pub fn TooManyArgsForValue(args: String, kwargs: String) -> Self
pub fn Anyhow(err: Error) -> Self
Trait Implementations§
Source§impl Debug for CallFunctionError
impl Debug for CallFunctionError
Source§impl Display for CallFunctionError
impl Display for CallFunctionError
Source§impl Error for CallFunctionError
impl Error for CallFunctionError
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<BorrowError> for CallFunctionError
impl From<BorrowError> for CallFunctionError
Source§fn from(v: BorrowError) -> CallFunctionError
fn from(v: BorrowError) -> CallFunctionError
Converts to this type from the input type.
Source§impl From<CallOpError> for CallFunctionError
impl From<CallOpError> for CallFunctionError
Source§fn from(v: CallOpError) -> CallFunctionError
fn from(v: CallOpError) -> CallFunctionError
Converts to this type from the input type.
Source§impl From<Error> for CallFunctionError
impl From<Error> for CallFunctionError
Source§impl From<SerializablePyErr> for CallFunctionError
impl From<SerializablePyErr> for CallFunctionError
Source§fn from(v: SerializablePyErr) -> CallFunctionError
fn from(v: SerializablePyErr) -> CallFunctionError
Converts to this type from the input type.
Source§impl Named for CallFunctionError
impl Named for CallFunctionError
Source§fn typename() -> &'static str
fn typename() -> &'static str
The globally unique type name for the type.
This should typically be the fully qualified Rust name of the type.
Source§fn typehash() -> u64
fn typehash() -> u64
A globally unique hash for this type.
TODO: actually enforce perfect hashing
Source§fn arm(&self) -> Option<&'static str>
fn arm(&self) -> Option<&'static str>
If the named type is an enum, this returns the name of the arm
of the value self.
Source§fn typeid() -> TypeId
fn typeid() -> TypeId
The TypeId for this type. TypeIds are unique only within a binary,
and should not be used for global identification.
Auto Trait Implementations§
impl Freeze for CallFunctionError
impl RefUnwindSafe for CallFunctionError
impl Send for CallFunctionError
impl Sync for CallFunctionError
impl Unpin for CallFunctionError
impl UnwindSafe for CallFunctionError
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more