pub struct MethodCallbackContext { /* private fields */ }Expand description
Context when MethodCallback is being called.
Implementations§
Source§impl MethodCallbackContext
impl MethodCallbackContext
Sourcepub fn object_id(&self) -> &NodeId
pub fn object_id(&self) -> &NodeId
Gets object node ID.
This returns the object node ID used by the client that is calling this MethodCallback.
Sourcepub fn input_arguments(&self) -> &[Variant]
pub fn input_arguments(&self) -> &[Variant]
Gets input arguments.
This returns the values received from the client that is calling this MethodCallback.
Sourcepub fn output_arguments_mut(&mut self) -> &mut [Variant]
pub fn output_arguments_mut(&mut self) -> &mut [Variant]
Gets mutable reference to output arguments.
This allows setting the values to report back to the client that is calling this
MethodCallback.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MethodCallbackContext
impl RefUnwindSafe for MethodCallbackContext
impl !Send for MethodCallbackContext
impl !Sync for MethodCallbackContext
impl Unpin for MethodCallbackContext
impl UnwindSafe for MethodCallbackContext
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