pub struct PublishDone {
pub status_code: VarInt,
pub stream_count: VarInt,
pub reason_phrase: Vec<u8>,
}Expand description
PUBLISH_DONE (0x0B).
Fields§
§status_code: VarIntThe reason the publisher is ending the subscription.
Not validated against the registry. Draft-23 Section 13: “Receipt of an unknown error code in any error context (Session Termination, REQUEST_ERROR, PUBLISH_DONE, or Data Stream Reset) MUST be treated as equivalent to INTERNAL_ERROR for that context. An endpoint MUST NOT close the session because it received an unknown error code in a REQUEST_ERROR or PUBLISH_DONE.”
stream_count: VarIntThe number of streams the publisher opened for this subscription,
including fill fetch streams (Section 9.9). See
publish_done_codes::STREAM_COUNT_UNKNOWN for the sentinel.
reason_phrase: Vec<u8>Trait Implementations§
Source§impl Clone for PublishDone
impl Clone for PublishDone
Source§impl Debug for PublishDone
impl Debug for PublishDone
impl Eq for PublishDone
Source§impl PartialEq for PublishDone
impl PartialEq for PublishDone
impl StructuralPartialEq for PublishDone
Auto Trait Implementations§
impl Freeze for PublishDone
impl RefUnwindSafe for PublishDone
impl Send for PublishDone
impl Sync for PublishDone
impl Unpin for PublishDone
impl UnsafeUnpin for PublishDone
impl UnwindSafe for PublishDone
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