#[non_exhaustive]pub struct DiscoverExchange<'a> {
pub request: Option<(u64, Option<&'a Value>)>,
pub result: Option<(u64, &'a Value)>,
pub error: Option<u64>,
}Expand description
The observed server/discover exchange — the optional stateless capability/identity
probe — when present. A session is valid with no discovery at all.
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: Option<(u64, Option<&'a Value>)>The server/discover request: its event seq and params value (if any).
result: Option<(u64, &'a Value)>The successful server/discover result: its event seq and result value.
error: Option<u64>The seq of an error response to the server/discover request.
Trait Implementations§
Source§impl<'a> Clone for DiscoverExchange<'a>
impl<'a> Clone for DiscoverExchange<'a>
Source§fn clone(&self) -> DiscoverExchange<'a>
fn clone(&self) -> DiscoverExchange<'a>
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 moreimpl<'a> Copy for DiscoverExchange<'a>
Source§impl<'a> Debug for DiscoverExchange<'a>
impl<'a> Debug for DiscoverExchange<'a>
Source§impl<'a> Default for DiscoverExchange<'a>
impl<'a> Default for DiscoverExchange<'a>
Source§fn default() -> DiscoverExchange<'a>
fn default() -> DiscoverExchange<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for DiscoverExchange<'a>
impl<'a> RefUnwindSafe for DiscoverExchange<'a>
impl<'a> Send for DiscoverExchange<'a>
impl<'a> Sync for DiscoverExchange<'a>
impl<'a> Unpin for DiscoverExchange<'a>
impl<'a> UnsafeUnpin for DiscoverExchange<'a>
impl<'a> UnwindSafe for DiscoverExchange<'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