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: StringThe function name
parameters: Option<Vec<ParameterValue>>The parameters for the function call.
expected_return_type: ReturnTypeThe 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.
Sourcepub fn encode<'a, 'b, S>(
&'a self,
builder: &'b mut FlatBufferBuilder<'_>,
external_values: &mut S,
) -> Result<&'b [u8]>where
S: ExternalValueSink<'a> + ?Sized,
pub fn encode<'a, 'b, S>(
&'a self,
builder: &'b mut FlatBufferBuilder<'_>,
external_values: &mut S,
) -> Result<&'b [u8]>where
S: ExternalValueSink<'a> + ?Sized,
Encode control data and collect byte parameters as external values.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FunctionCall
impl RefUnwindSafe for FunctionCall
impl Send for FunctionCall
impl Sync for FunctionCall
impl Unpin for FunctionCall
impl UnsafeUnpin 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