pub enum Side {
Client,
Server,
Both,
}Expand description
Which side of the connection a capability is declared on.
A capability that is not declared by the side that would provide it cannot be enabled, and keeping the two apart is what makes that checkable.
Variants§
Client
Declared by the client, describing what the client can do.
Server
Declared by the server, describing what the server can do.
Both
Declared by both, with the same meaning.
Implementations§
Source§impl Side
impl Side
Sourcepub const fn includes_client(self) -> bool
pub const fn includes_client(self) -> bool
Whether a client may declare this side.
Sourcepub const fn includes_server(self) -> bool
pub const fn includes_server(self) -> bool
Whether a server may declare this side.
Trait Implementations§
impl Copy for Side
impl Eq for Side
Source§impl Ord for Side
impl Ord for Side
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Side
impl PartialOrd for Side
impl StructuralPartialEq for Side
Auto Trait Implementations§
impl Freeze for Side
impl RefUnwindSafe for Side
impl Send for Side
impl Sync for Side
impl Unpin for Side
impl UnsafeUnpin for Side
impl UnwindSafe for Side
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