pub struct OwnedDispatchable { /* private fields */ }Expand description
An owning handle to a Dispatchable.
The serialized message and associated data are borrowed by the underlying C++ object, so this handle keeps both buffers alive for as long as the dispatchable can be accessed.
Methods from Deref<Target = Dispatchable>§
pub fn ok(&self) -> bool
pub fn call_id(&self) -> i32
pub fn has_call_id(&self) -> bool
pub fn method(&self) -> Vec<u8> ⓘ
pub fn method_str(&self) -> String
pub fn session_id(&self) -> Vec<u8> ⓘ
pub fn params(&self) -> Vec<u8> ⓘ
pub fn associated_data(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl AsMut<Dispatchable> for OwnedDispatchable
impl AsMut<Dispatchable> for OwnedDispatchable
Source§fn as_mut(&mut self) -> &mut Dispatchable
fn as_mut(&mut self) -> &mut Dispatchable
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<Dispatchable> for OwnedDispatchable
impl AsRef<Dispatchable> for OwnedDispatchable
Source§fn as_ref(&self) -> &Dispatchable
fn as_ref(&self) -> &Dispatchable
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Deref for OwnedDispatchable
impl Deref for OwnedDispatchable
Source§impl DerefMut for OwnedDispatchable
impl DerefMut for OwnedDispatchable
Source§impl Drop for OwnedDispatchable
impl Drop for OwnedDispatchable
Auto Trait Implementations§
impl !Send for OwnedDispatchable
impl !Sync for OwnedDispatchable
impl Freeze for OwnedDispatchable
impl RefUnwindSafe for OwnedDispatchable
impl Unpin for OwnedDispatchable
impl UnsafeUnpin for OwnedDispatchable
impl UnwindSafe for OwnedDispatchable
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