pub enum Role {
Client,
Server,
}Expand description
Which side of the session this endpoint is.
Two rules on this draft turn on the answer, and both live in the setup and migration messages rather than in any per-request state: the PATH parameter belongs to the client, and a GOAWAY may only travel from the server to the client. Subscribe IDs on this draft are a single session-wide sequence and do not depend on who allocates them, so nothing else reads this.
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