pub enum Subscribed {
Created(Subscription),
Replaced(Subscription),
Invalid(String),
TooMany,
Conflict,
NotFound,
SignedOut,
}Expand description
The outcome of Hosts::subscribe and Hosts::rotate.
Variants§
Created(Subscription)
Replaced(Subscription)
The endpoint was the owner’s already: its keys, label, session and expiry are replaced (a browser re-subscribing after a key change). A rotation’s answer.
Invalid(String)
TooMany
MAX_SUBSCRIPTIONS already.
Conflict
Another owner has this endpoint (the review’s A7).
NotFound
A rotation whose old endpoint is not the owner’s.
SignedOut
The subscribing session ended before the subscription was stored (a sign-out racing it; Task 1’s review): nothing is stored.
Trait Implementations§
Source§impl Clone for Subscribed
impl Clone for Subscribed
Source§impl Debug for Subscribed
impl Debug for Subscribed
impl Eq for Subscribed
Source§impl PartialEq for Subscribed
impl PartialEq for Subscribed
impl StructuralPartialEq for Subscribed
Auto Trait Implementations§
impl Freeze for Subscribed
impl RefUnwindSafe for Subscribed
impl Send for Subscribed
impl Sync for Subscribed
impl Unpin for Subscribed
impl UnsafeUnpin for Subscribed
impl UnwindSafe for Subscribed
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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