pub struct Method {
pub name: [u8; 4],
pub sync_level: u8,
pub is_serialized: bool,
pub arg_count: u8,
/* private fields */
}
Expand description
An AML Method
Fields§
§name: [u8; 4]
§sync_level: u8
§is_serialized: bool
§arg_count: u8
Implementations§
Source§impl Method
impl Method
Sourcepub fn set_arg_count(&mut self, arg_count: u8)
pub fn set_arg_count(&mut self, arg_count: u8)
Set the number of arguments the method accepts.
Sourcepub fn add_operation(&mut self, op: &impl OperationObject)
pub fn add_operation(&mut self, op: &impl OperationObject)
Add an operation to the method body.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnwindSafe for Method
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