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.
Sourcepub fn encode<'a>(&self, builder: &'a mut FlatBufferBuilder<'_>) -> &'a [u8] ⓘ
pub fn encode<'a>(&self, builder: &'a mut FlatBufferBuilder<'_>) -> &'a [u8] ⓘ
Encodes self into the given builder and returns the encoded data.
§Notes
The builder should not be reused after a call to encode, since this function does not reset the state of the builder. If you want to reuse the builder, you’ll need to reset it first.
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 moreAuto 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