pub struct RpcCallContext { /* private fields */ }Implementations§
Source§impl RpcCallContext
impl RpcCallContext
pub fn connection_id(&self) -> u64
pub fn instance_id(&self) -> InstanceId
pub async fn notify( &self, instance_id: Option<InstanceId>, notification_id: u32, payload: Value, ) -> Result<(), RuntimeError>
pub async fn notify_bound( &self, notification_id: u32, payload: Value, ) -> Result<(), RuntimeError>
Trait Implementations§
Source§impl Clone for RpcCallContext
impl Clone for RpcCallContext
Source§fn clone(&self) -> RpcCallContext
fn clone(&self) -> RpcCallContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RpcCallContext
impl !RefUnwindSafe for RpcCallContext
impl Send for RpcCallContext
impl Sync for RpcCallContext
impl Unpin for RpcCallContext
impl UnsafeUnpin for RpcCallContext
impl !UnwindSafe for RpcCallContext
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