pub enum RuntimeTypeChecking {
Disabled,
OnlyExternal,
Enabled,
}Expand description
Levels of type checking that can be performed by a Runtime
during graph execution. (Distinct from the type_check: bool parameter
to e.g. start_graph which relates to
type-checking before graph execution begins)
Variants§
Disabled
No type checking at runtime. If functions produce outputs that do not match their outputs, these values will nonetheless be placed onto the graph edges and passed as inputs to the edge targets.
OnlyExternal
Values from external workers (either running functions, or graph workers running Boxes at non-local/strict-descendant Locations) are checked as Self::Enabled; values from local functions and boxes are not checked (as Self::Disabled).
Enabled
Type-check that every value produced at runtime meets the expected/declared
type; any that does not will abort execution with a
GraphError::UnexpectedOutputType error
Trait Implementations§
Source§impl Clone for RuntimeTypeChecking
impl Clone for RuntimeTypeChecking
Source§fn clone(&self) -> RuntimeTypeChecking
fn clone(&self) -> RuntimeTypeChecking
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeTypeChecking
impl Debug for RuntimeTypeChecking
Source§impl Default for RuntimeTypeChecking
impl Default for RuntimeTypeChecking
Source§fn default() -> RuntimeTypeChecking
fn default() -> RuntimeTypeChecking
impl Copy for RuntimeTypeChecking
Auto Trait Implementations§
impl Freeze for RuntimeTypeChecking
impl RefUnwindSafe for RuntimeTypeChecking
impl Send for RuntimeTypeChecking
impl Sync for RuntimeTypeChecking
impl Unpin for RuntimeTypeChecking
impl UnwindSafe for RuntimeTypeChecking
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request