pub struct Snapshot {
pub resource: Uri,
pub state: SnapshotState,
pub from_seq: i64,
}Expand description
A point-in-time snapshot of a subscribed resource’s state, returned by
initialize, reconnect, and subscribe.
Fields§
§resource: UriThe subscribed channel URI (e.g. ahp-root://, ahp-session:/<uuid>, or ahp-chat:/<uuid>)
state: SnapshotStateThe current state of the resource
from_seq: i64The serverSeq at which this snapshot was taken. Subsequent actions will have serverSeq > fromSeq.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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 StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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