Skip to main content

CloudSessionDeltaMessage

Struct CloudSessionDeltaMessage 

Source
pub struct CloudSessionDeltaMessage {
    pub seq: u64,
    pub changed: Vec<String>,
    pub cloud_session: Value,
    pub uuid: String,
    pub session_id: String,
    pub extra: Map<String, Value>,
}
Expand description

system/cloud_session_delta — written only by the headless stream-json client of a cloud-hosted session (the same client that puts cloud_session on its init frames): the session’s status changed between two inits. Only after the first init; at most a few per second; none when nothing differs. An init is always a complete snapshot, so a host that (re)attaches resynchronises from the first init it reads and applies these on top. Display-only (CLI 2.1.260+).

Fields§

§seq: u64

Rises by one with each of these frames this client writes (1 for the first); never reset by an init. A reader keeps the highest it has applied and drops a lower one.

§changed: Vec<String>

The top-level keys of cloud_session whose value differs from the last block this client wrote, e.g. ["serving"]; never empty. A hint for what to redraw — the block is complete either way.

§cloud_session: Value

The whole block exactly as the next init would carry it (see InitMessage::cloud_session): replace the held copy, do not merge. Stored as raw JSON (the shape is internal and evolving).

§uuid: String§session_id: String§extra: Map<String, Value>

Trait Implementations§

Source§

impl Clone for CloudSessionDeltaMessage

Source§

fn clone(&self) -> CloudSessionDeltaMessage

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CloudSessionDeltaMessage

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for CloudSessionDeltaMessage

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for CloudSessionDeltaMessage

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.