pub struct FunctionCall {
pub function_name: String,
pub parameters: Option<Vec<ParameterValue>>,
pub expected_return_type: ReturnType,
/* private fields */
}
Expand description
Functioncall
represents a call to a function in the guest or host.
Fields§
§function_name: String
The function name
parameters: Option<Vec<ParameterValue>>
The parameters for the function call.
expected_return_type: ReturnType
The return type of the function call
Implementations§
Source§impl FunctionCall
impl FunctionCall
pub fn new( function_name: String, parameters: Option<Vec<ParameterValue>>, function_call_type: FunctionCallType, expected_return_type: ReturnType, ) -> Self
Sourcepub fn function_call_type(&self) -> FunctionCallType
pub fn function_call_type(&self) -> FunctionCallType
The type of the function call.
Trait Implementations§
Source§impl Clone for FunctionCall
impl Clone for FunctionCall
Source§fn clone(&self) -> FunctionCall
fn clone(&self) -> FunctionCall
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl TryFrom<&[u8]> for FunctionCall
impl TryFrom<&[u8]> for FunctionCall
Auto Trait Implementations§
impl Freeze for FunctionCall
impl RefUnwindSafe for FunctionCall
impl Send for FunctionCall
impl Sync for FunctionCall
impl Unpin for FunctionCall
impl UnwindSafe for FunctionCall
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