pub enum Published {
Accepted {
tag: String,
expires: Duration,
},
Removed {
tag: String,
},
ConditionFailed,
Invalid,
Unavailable,
}Expand description
How a publication attempt was answered.
Variants§
Accepted
Accepted. The tag identifies the state from now on and goes in SIP-ETag (§6 step 6).
A fresh tag on every acceptance, including a refresh: §6 has the ESC issue one per response, and a publisher that kept using an old one after a refresh would be rejected the next time it tried.
Removed
Removed. Its fresh response tag identifies no retained state because the granted lifetime is zero.
ConditionFailed
The entity tag names state this server does not have (§6 step 3).
412, not 404 and not silently accepting it as new. A publisher whose state expired while it was not looking has to start again with a fresh publication; treating its refresh as a new publication would resurrect a document the server had already forgotten and that nothing has re-sent.
Invalid
Nothing to publish and nothing to identify (§6 step 5).
The compositor could not mint another unique entity tag.
Trait Implementations§
impl Eq for Published
impl StructuralPartialEq for Published
Auto Trait Implementations§
impl Freeze for Published
impl RefUnwindSafe for Published
impl Send for Published
impl Sync for Published
impl Unpin for Published
impl UnsafeUnpin for Published
impl UnwindSafe for Published
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
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
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>
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>
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