pub struct OperationDescriptor {
pub name: String,
pub opcode: u32,
pub one_way: bool,
pub in_params: Vec<String>,
pub out_params: Vec<String>,
}Expand description
Operation descriptor for codegen.
For each IDL operation void op(in t1 x, out t2 y) raises (E) the
codegen produces an OperationDescriptor.
Fields§
§name: StringMethod name from IDL.
opcode: u32Monotonically assigned opcode.
one_way: booltrue for a oneway spec — no reply expected.
in_params: Vec<String>List of in/inout parameters (order as in IDL).
out_params: Vec<String>List of out/inout parameters + return type (Spec
§7.2.4.2 maps the return to the first member position).
Trait Implementations§
Source§impl Clone for OperationDescriptor
impl Clone for OperationDescriptor
Source§fn clone(&self) -> OperationDescriptor
fn clone(&self) -> OperationDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationDescriptor
impl Debug for OperationDescriptor
impl Eq for OperationDescriptor
Source§impl PartialEq for OperationDescriptor
impl PartialEq for OperationDescriptor
Source§fn eq(&self, other: &OperationDescriptor) -> bool
fn eq(&self, other: &OperationDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OperationDescriptor
Auto Trait Implementations§
impl Freeze for OperationDescriptor
impl RefUnwindSafe for OperationDescriptor
impl Send for OperationDescriptor
impl Sync for OperationDescriptor
impl Unpin for OperationDescriptor
impl UnsafeUnpin for OperationDescriptor
impl UnwindSafe for OperationDescriptor
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