pub struct ModuleCaller { /* private fields */ }Implementations§
Source§impl ModuleCaller
impl ModuleCaller
pub fn new( tx: Sender<InternalRequest>, depth: u32, trace_id: u128, span_id: u64, ) -> Self
pub fn depth(&self) -> u32
pub fn trace_id(&self) -> u128
pub fn span_id(&self) -> u64
pub async fn call( &self, module: &str, method: &str, args: &[u8], ) -> Result<Vec<u8>>
pub async fn call_with_timeout( &self, module: &str, method: &str, args: &[u8], timeout: Duration, ) -> Result<Vec<u8>>
pub fn for_nested_call(&self, span_id: u64) -> ModuleCaller
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleCaller
impl RefUnwindSafe for ModuleCaller
impl Send for ModuleCaller
impl Sync for ModuleCaller
impl Unpin for ModuleCaller
impl UnsafeUnpin for ModuleCaller
impl UnwindSafe for ModuleCaller
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