pub enum Role {
Client,
Server,
}Expand description
Which side of the session this endpoint is.
This draft has no Request ID parity and no ROLE parameter, so the only rule that turns on the answer is the one in Section 7.3 about which side may send a GOAWAY that carries a New Session URI. It lives here rather than beside the Subscribe ID allocator for that reason: a Subscribe ID on this draft is a session-wide counter and does not depend on who allocates it.
Variants§
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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