pub struct SubscribeResult {
pub snapshot: Option<Snapshot>,
}Expand description
Result of the subscribe command.
snapshot is present when the subscribed channel has associated state, and
absent for stateless channels.
Fields§
§snapshot: Option<Snapshot>Snapshot of the subscribed channel’s state (omitted for stateless channels)
Trait Implementations§
Source§impl Clone for SubscribeResult
impl Clone for SubscribeResult
Source§fn clone(&self) -> SubscribeResult
fn clone(&self) -> SubscribeResult
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 SubscribeResult
impl Debug for SubscribeResult
Source§impl Default for SubscribeResult
impl Default for SubscribeResult
Source§fn default() -> SubscribeResult
fn default() -> SubscribeResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SubscribeResult
impl<'de> Deserialize<'de> for SubscribeResult
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
Source§impl PartialEq for SubscribeResult
impl PartialEq for SubscribeResult
Source§impl Serialize for SubscribeResult
impl Serialize for SubscribeResult
impl StructuralPartialEq for SubscribeResult
Auto Trait Implementations§
impl Freeze for SubscribeResult
impl RefUnwindSafe for SubscribeResult
impl Send for SubscribeResult
impl Sync for SubscribeResult
impl Unpin for SubscribeResult
impl UnsafeUnpin for SubscribeResult
impl UnwindSafe for SubscribeResult
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