pub struct DebugEngine { /* private fields */ }Expand description
Wrapper around an Engine that logs all RPC operations
Implementations§
Trait Implementations§
Source§impl Engine for DebugEngine
impl Engine for DebugEngine
fn send_message<'life0, 'life1, 'async_trait>(
&'life0 mut self,
method: &'life1 str,
params: Value,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_message_cbor<'life0, 'life1, 'async_trait>(
&'life0 mut self,
method: &'life1 str,
params: CborValue,
) -> Pin<Box<dyn Future<Output = Result<CborValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn register_live<'life0, 'life1, 'async_trait>(
&'life0 mut self,
query_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<UnboundedReceiver<Notification>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn register_live<'life0, 'life1, 'async_trait>(
&'life0 mut self,
query_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<UnboundedReceiver<Notification>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Register interest in a live query’s notifications. Read more
Source§fn unregister_live<'life0, 'life1, 'async_trait>(
&'life0 mut self,
query_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unregister_live<'life0, 'life1, 'async_trait>(
&'life0 mut self,
query_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Drop local delivery for a live-query id. Does not send
KILL — that is
a separate RPC. Default is a no-op.Auto Trait Implementations§
impl !RefUnwindSafe for DebugEngine
impl !UnwindSafe for DebugEngine
impl Freeze for DebugEngine
impl Send for DebugEngine
impl Sync for DebugEngine
impl Unpin for DebugEngine
impl UnsafeUnpin for DebugEngine
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