pub struct Object { /* private fields */ }Expand description
The Object struct is used to represent an instantiation of an ObjectType. The Object struct is
created via the SealedObjectType::new_instance method.
Implementations§
Source§impl Object
impl Object
Sourcepub fn call(&self, method: &str, params: &[Parameter]) -> ReturnResult
pub fn call(&self, method: &str, params: &[Parameter]) -> ReturnResult
The call method allows calling a method of this Object struct. The method must be defined in the associated ObjectType, otherwise an error will be returned. The types and length of the params array must also be supported by the called function, other an error is returned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl !RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl !UnwindSafe for Object
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