pub struct UnknownSessionErrorData {
pub kind: String,
pub session_id: Option<String>,
}Expand description
Structured data for an “unknown session” error (kind: "unknown_session").
Mirrors UnknownSessionErrorData in packages/core/src/json-rpc.ts. The
sidecar normalizes an adapter’s native “no such session” error from
session/load into this shape so resume orchestration can distinguish “the
store didn’t survive the wake — fall through to a fresh session” from a
transport/timeout error (which must propagate).
Fields§
§kind: String§session_id: Option<String>Optional metadata. The discriminator is kind alone — the sidecar’s
normalized error carries only kind, so this stays optional to keep the
sidecar and client contracts aligned with the TS mirror.
Trait Implementations§
Source§impl Clone for UnknownSessionErrorData
impl Clone for UnknownSessionErrorData
Source§fn clone(&self) -> UnknownSessionErrorData
fn clone(&self) -> UnknownSessionErrorData
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 UnknownSessionErrorData
impl Debug for UnknownSessionErrorData
Source§impl<'de> Deserialize<'de> for UnknownSessionErrorData
impl<'de> Deserialize<'de> for UnknownSessionErrorData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UnknownSessionErrorData
Source§impl PartialEq for UnknownSessionErrorData
impl PartialEq for UnknownSessionErrorData
Source§fn eq(&self, other: &UnknownSessionErrorData) -> bool
fn eq(&self, other: &UnknownSessionErrorData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UnknownSessionErrorData
impl Serialize for UnknownSessionErrorData
impl StructuralPartialEq for UnknownSessionErrorData
Auto Trait Implementations§
impl Freeze for UnknownSessionErrorData
impl RefUnwindSafe for UnknownSessionErrorData
impl Send for UnknownSessionErrorData
impl Sync for UnknownSessionErrorData
impl Unpin for UnknownSessionErrorData
impl UnsafeUnpin for UnknownSessionErrorData
impl UnwindSafe for UnknownSessionErrorData
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compares
self to key and returns true if they are equal.