pub struct SessionSnapshot {
pub is_initialized: bool,
pub is_encrypted: bool,
pub has_sent_common_tags: bool,
pub supports_ephemeral_gift_wrap: bool,
pub supports_encryption: bool,
pub supports_ephemeral_encryption: bool,
pub supports_oversized_transfer: bool,
pub supports_open_stream: bool,
}Expand description
A lightweight snapshot of session state (avoids exposing the full ClientSession
through the async API boundary).
Fields§
§is_initialized: boolWhether the MCP initialize handshake has completed
is_encrypted: boolWhether the session is using NIP-44 encrypted transport
Whether common discovery tags have been sent for this session
supports_ephemeral_gift_wrap: boolWhether the peer advertised support for ephemeral gift wraps (CEP-19)
supports_encryption: boolWhether the peer advertised encryption support (CEP-35 learned capability)
supports_ephemeral_encryption: boolWhether the peer advertised ephemeral-encryption support (CEP-35 learned capability)
supports_oversized_transfer: boolWhether the peer advertised CEP-22 oversized-transfer support (learned, gated by server config)
supports_open_stream: boolWhether the peer advertised CEP-41 open-stream support (learned, gated by server config)
Trait Implementations§
Source§impl Clone for SessionSnapshot
impl Clone for SessionSnapshot
Source§fn clone(&self) -> SessionSnapshot
fn clone(&self) -> SessionSnapshot
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 moreSource§impl Debug for SessionSnapshot
impl Debug for SessionSnapshot
impl Eq for SessionSnapshot
Source§impl PartialEq for SessionSnapshot
impl PartialEq for SessionSnapshot
impl StructuralPartialEq for SessionSnapshot
Auto Trait Implementations§
impl Freeze for SessionSnapshot
impl RefUnwindSafe for SessionSnapshot
impl Send for SessionSnapshot
impl Sync for SessionSnapshot
impl Unpin for SessionSnapshot
impl UnsafeUnpin for SessionSnapshot
impl UnwindSafe for SessionSnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more