pub struct DatexBytecodeCallable {
pub injected_values: Vec<ValueContainer>,
pub body: Vec<u8>,
pub requires_async: bool,
}Fields§
§injected_values: Vec<ValueContainer>§body: Vec<u8>§requires_async: boolTrait Implementations§
Source§impl Apply for DatexBytecodeCallable
impl Apply for DatexBytecodeCallable
Source§fn try_apply_sync(
&self,
runtime: &Runtime,
args: Vec<ApplyArgument>,
) -> Result<(Option<ValueContainer>, Vec<ValueContainer>), ApplyError>
fn try_apply_sync( &self, runtime: &Runtime, args: Vec<ApplyArgument>, ) -> Result<(Option<ValueContainer>, Vec<ValueContainer>), ApplyError>
Applies multiple ValueContainer arguments to self
Returns an Error if the value does not support sync apply.
The return value is a tuple of the return value of the apply operation,
and a vector containing all value containers for apply arguments that were passed as local references.
Note: the count of the returned Vec corresponds to the count of arguments that have [passed_as_ref] set to true.
Source§async fn try_apply_async(
&self,
runtime: &Runtime,
args: Vec<ApplyArgument>,
) -> Result<(Option<ValueContainer>, Vec<ValueContainer>), ApplyError>
async fn try_apply_async( &self, runtime: &Runtime, args: Vec<ApplyArgument>, ) -> Result<(Option<ValueContainer>, Vec<ValueContainer>), ApplyError>
Applies multiple ValueContainer arguments to self on a sync or async callable.
The return value is a tuple of the return value of the apply operation,
and a vector containing all value containers for apply arguments that were passed as local references.
Note: the count of the returned Vec corresponds to the count of arguments that have [passed_as_ref] set to true.
Source§fn try_apply_sync_checked(
&self,
runtime: &Runtime,
args: Vec<ApplyArgument>,
) -> Result<(Option<ValueContainer>, Vec<ValueContainer>), ApplyError>
fn try_apply_sync_checked( &self, runtime: &Runtime, args: Vec<ApplyArgument>, ) -> Result<(Option<ValueContainer>, Vec<ValueContainer>), ApplyError>
Calls the [try_apply_sync] method and checks that the number of returned local references
matches the number of arguments that were passed as local references.
Source§async fn try_apply_async_checked(
&self,
runtime: &Runtime,
args: Vec<ApplyArgument>,
) -> Result<(Option<ValueContainer>, Vec<ValueContainer>), ApplyError>
async fn try_apply_async_checked( &self, runtime: &Runtime, args: Vec<ApplyArgument>, ) -> Result<(Option<ValueContainer>, Vec<ValueContainer>), ApplyError>
Calls the [try_apply_async] method and checks that the number of returned local references
matches the number of arguments that were passed as local references.
Source§impl Clone for DatexBytecodeCallable
impl Clone for DatexBytecodeCallable
Source§impl Debug for DatexBytecodeCallable
impl Debug for DatexBytecodeCallable
impl Eq for DatexBytecodeCallable
Source§impl Hash for DatexBytecodeCallable
impl Hash for DatexBytecodeCallable
Source§impl PartialEq for DatexBytecodeCallable
impl PartialEq for DatexBytecodeCallable
impl StructuralPartialEq for DatexBytecodeCallable
Auto Trait Implementations§
impl !RefUnwindSafe for DatexBytecodeCallable
impl !Send for DatexBytecodeCallable
impl !Sync for DatexBytecodeCallable
impl !UnwindSafe for DatexBytecodeCallable
impl Forget for DatexBytecodeCallable
impl Freeze for DatexBytecodeCallable
impl Move for DatexBytecodeCallable
impl Unpin for DatexBytecodeCallable
impl UnsafeUnpin for DatexBytecodeCallable
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type