#[non_exhaustive]pub struct Exchange<'a> {
pub request: &'a TraceEvent,
pub method: &'a str,
pub params: Option<&'a Value>,
pub response: &'a TraceEvent,
pub result: Option<&'a Value>,
}Expand description
One completed request/response exchange, in response order.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.request: &'a TraceEventThe request event.
method: &'a strThe request’s method.
params: Option<&'a Value>The request’s params, when present.
response: &'a TraceEventThe response event (result or error).
result: Option<&'a Value>The response’s result value; None when the response is an error.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Exchange<'a>
impl<'a> RefUnwindSafe for Exchange<'a>
impl<'a> Send for Exchange<'a>
impl<'a> Sync for Exchange<'a>
impl<'a> Unpin for Exchange<'a>
impl<'a> UnsafeUnpin for Exchange<'a>
impl<'a> UnwindSafe for Exchange<'a>
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