pub struct SubscribeDone {
pub id: u64,
pub code: u64,
pub reason: String,
pub last: Option<(u64, u64)>,
}
Expand description
Sent by the publisher to cleanly terminate a Subscribe.
Fields§
§id: u64
The ID for this subscription.
code: u64
The error code
reason: String
An optional error reason
last: Option<(u64, u64)>
The final group/object sent on this subscription.
Trait Implementations§
Source§impl Clone for SubscribeDone
impl Clone for SubscribeDone
Source§fn clone(&self) -> SubscribeDone
fn clone(&self) -> SubscribeDone
Returns a copy of the value. Read more
1.0.0 · 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 SubscribeDone
impl Debug for SubscribeDone
Source§impl Decode for SubscribeDone
impl Decode for SubscribeDone
Source§impl Encode for SubscribeDone
impl Encode for SubscribeDone
Source§impl From<SubscribeDone> for Message
impl From<SubscribeDone> for Message
Source§fn from(m: SubscribeDone) -> Self
fn from(m: SubscribeDone) -> Self
Converts to this type from the input type.
Source§impl From<SubscribeDone> for Publisher
impl From<SubscribeDone> for Publisher
Source§fn from(msg: SubscribeDone) -> Self
fn from(msg: SubscribeDone) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SubscribeDone
impl RefUnwindSafe for SubscribeDone
impl Send for SubscribeDone
impl Sync for SubscribeDone
impl Unpin for SubscribeDone
impl UnwindSafe for SubscribeDone
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