pub struct AsyncMethodInvoker { /* private fields */ }Implementations§
Source§impl AsyncMethodInvoker
impl AsyncMethodInvoker
Sourcepub async fn call_method_cv<V: Into<Value>, R: TryFrom<Value, Error = E>, E: Into<TryFromError>>(
&self,
target_isolate: IsolateId,
method: &str,
args: V,
) -> Result<R, MethodCallError>
pub async fn call_method_cv<V: Into<Value>, R: TryFrom<Value, Error = E>, E: Into<TryFromError>>( &self, target_isolate: IsolateId, method: &str, args: V, ) -> Result<R, MethodCallError>
Convenience call method that will attempt to convert the result to specified type.
pub async fn call_method<V: Into<Value>>( &self, target_isolate: IsolateId, method: &str, args: V, ) -> Result<Value, MethodCallError>
Sourcepub fn call_method_sync_cv<V: Into<Value>, F, T: TryFrom<Value, Error = E>, E: Into<TryFromError>>(
&self,
target_isolate: IsolateId,
method: &str,
args: V,
reply: F,
)
pub fn call_method_sync_cv<V: Into<Value>, F, T: TryFrom<Value, Error = E>, E: Into<TryFromError>>( &self, target_isolate: IsolateId, method: &str, args: V, reply: F, )
Convenience call method that will attempt to convert the result to specified type.
pub fn call_method_sync<V: Into<Value>, F>( &self, target_isolate: IsolateId, method: &str, args: V, reply: F, )
Trait Implementations§
Source§impl Clone for AsyncMethodInvoker
impl Clone for AsyncMethodInvoker
Source§fn clone(&self) -> AsyncMethodInvoker
fn clone(&self) -> AsyncMethodInvoker
Returns a duplicate of the value. Read more
1.0.0 · 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 AsyncMethodInvoker
impl RefUnwindSafe for AsyncMethodInvoker
impl Send for AsyncMethodInvoker
impl Sync for AsyncMethodInvoker
impl Unpin for AsyncMethodInvoker
impl UnwindSafe for AsyncMethodInvoker
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