pub enum Answer {
Established {
id: Id,
expires: Duration,
},
Refreshed {
id: Id,
expires: Duration,
},
Unsubscribed {
id: Id,
},
Unserved {
status: u16,
},
AtCapacity,
Malformed,
OutOfOrder {
id: Id,
},
}Expand description
What answering a SUBSCRIBE concluded.
Variants§
Established
A new subscription. Answer 2xx, then send the first NOTIFY.
Fields
Refreshed
An existing subscription’s timer was pushed out.
Unsubscribed
Expires: 0 — the subscriber is leaving (§3.1.1).
The notifier still owes a terminating NOTIFY (§4.2.1.4), which is the part that is easy to miss: an unsubscribe is not a subscription of no duration, it is an ending.
Unserved
The Event names a package this notifier does not serve. Answer [BAD_EVENT].
AtCapacity
A new subscription would exceed this notifier’s configured peer-driven resource bound.
Malformed
The request could not be read as a SUBSCRIBE at all.
OutOfOrder
A matching subscription received an equal or lower remote CSeq.
Trait Implementations§
impl Eq for Answer
impl StructuralPartialEq for Answer
Auto Trait Implementations§
impl Freeze for Answer
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnsafeUnpin for Answer
impl UnwindSafe for Answer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more