Struct oc_wasm_safe::component::MethodAttributes
source · pub struct MethodAttributes {
pub direct: bool,
pub getter: bool,
pub setter: bool,
}
Expand description
The possible attributes of a method.
Fields§
§direct: bool
The method is direct.
If this value is true
, the method can be called and completed within a single timeslice.
The caller cannot assume that every invocation of a direct method will complete within a
timeslice, as even direct calls may have call budget limits; however, if this value is
false
, then no call to the method will ever complete immediately.
getter: bool
The method is a property getter.
If this value is true
, the method conceptually reads the value of a property, rather than
performing an action.
setter: bool
The method is a property setter.
If this value is true
, the method conceptually writes the value of a property, rather
than performing an action.
Trait Implementations§
source§impl Clone for MethodAttributes
impl Clone for MethodAttributes
source§fn clone(&self) -> MethodAttributes
fn clone(&self) -> MethodAttributes
Returns a copy 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 Debug for MethodAttributes
impl Debug for MethodAttributes
source§impl From<u32> for MethodAttributes
impl From<u32> for MethodAttributes
source§impl Hash for MethodAttributes
impl Hash for MethodAttributes
source§impl PartialEq for MethodAttributes
impl PartialEq for MethodAttributes
source§fn eq(&self, other: &MethodAttributes) -> bool
fn eq(&self, other: &MethodAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MethodAttributes
impl Eq for MethodAttributes
impl StructuralPartialEq for MethodAttributes
Auto Trait Implementations§
impl Freeze for MethodAttributes
impl RefUnwindSafe for MethodAttributes
impl Send for MethodAttributes
impl Sync for MethodAttributes
impl Unpin for MethodAttributes
impl UnwindSafe for MethodAttributes
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