pub enum SubscribeSide {
Ours,
Peers,
}Expand description
Which end of the session opened a subscription.
It takes this and an identifier together to name one on this draft. Each end allocates Subscribe IDs from zero, nothing in the draft separates the two sequences, and this endpoint keeps the peer’s apart from its own - so the peer’s subscribe 3 and this endpoint’s subscribe 3 are two subscriptions, not one.
Variants§
Ours
A SUBSCRIBE this endpoint sent, carrying the alias it chose.
Peers
A SUBSCRIBE the peer sent, carrying the alias the peer chose.
Trait Implementations§
Source§impl Clone for SubscribeSide
impl Clone for SubscribeSide
Source§fn clone(&self) -> SubscribeSide
fn clone(&self) -> SubscribeSide
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SubscribeSide
Source§impl Debug for SubscribeSide
impl Debug for SubscribeSide
Source§impl Display for SubscribeSide
impl Display for SubscribeSide
impl Eq for SubscribeSide
Source§impl Hash for SubscribeSide
impl Hash for SubscribeSide
Source§impl PartialEq for SubscribeSide
impl PartialEq for SubscribeSide
impl StructuralPartialEq for SubscribeSide
Auto Trait Implementations§
impl Freeze for SubscribeSide
impl RefUnwindSafe for SubscribeSide
impl Send for SubscribeSide
impl Sync for SubscribeSide
impl Unpin for SubscribeSide
impl UnsafeUnpin for SubscribeSide
impl UnwindSafe for SubscribeSide
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