#[non_exhaustive]pub struct TopicState {
pub topic: String,
pub subscription: Subscription,
pub continuity: Continuity,
pub reason: Option<String>,
}Expand description
A topic held: whether the server took it, and whether its messages run without a break.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.topic: String§subscription: Subscription§continuity: Continuity§reason: Option<String>Why it is not continuous: cold_start, reconnected, requested,
overflow, or the reason of the gap.
Trait Implementations§
Source§impl Clone for TopicState
impl Clone for TopicState
Source§impl Debug for TopicState
impl Debug for TopicState
impl Eq for TopicState
Source§impl PartialEq for TopicState
impl PartialEq for TopicState
impl StructuralPartialEq for TopicState
Auto Trait Implementations§
impl Forget for TopicState
impl Freeze for TopicState
impl Move for TopicState
impl RefUnwindSafe for TopicState
impl Send for TopicState
impl Sync for TopicState
impl Unpin for TopicState
impl UnsafeUnpin for TopicState
impl UnwindSafe for TopicState
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