Enum rpc2::proto::ChannelRole
source · #[repr(i32)]pub enum ChannelRole {
Admin,
Member,
Guest,
Banned,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for ChannelRole
impl Clone for ChannelRole
source§fn clone(&self) -> ChannelRole
fn clone(&self) -> ChannelRole
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChannelRole
impl Debug for ChannelRole
source§impl Default for ChannelRole
impl Default for ChannelRole
source§fn default() -> ChannelRole
fn default() -> ChannelRole
Returns the “default value” for a type. Read more
source§impl From<ChannelRole> for i32
impl From<ChannelRole> for i32
source§fn from(value: ChannelRole) -> i32
fn from(value: ChannelRole) -> i32
Converts to this type from the input type.
source§impl Hash for ChannelRole
impl Hash for ChannelRole
source§impl Ord for ChannelRole
impl Ord for ChannelRole
source§fn cmp(&self, other: &ChannelRole) -> Ordering
fn cmp(&self, other: &ChannelRole) -> Ordering
1.21.0 · 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
source§impl PartialEq<ChannelRole> for ChannelRole
impl PartialEq<ChannelRole> for ChannelRole
source§fn eq(&self, other: &ChannelRole) -> bool
fn eq(&self, other: &ChannelRole) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ChannelRole> for ChannelRole
impl PartialOrd<ChannelRole> for ChannelRole
source§fn partial_cmp(&self, other: &ChannelRole) -> Option<Ordering>
fn partial_cmp(&self, other: &ChannelRole) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ChannelRole
impl Serialize for ChannelRole
impl Copy for ChannelRole
impl Eq for ChannelRole
impl StructuralEq for ChannelRole
impl StructuralPartialEq for ChannelRole
Auto Trait Implementations§
impl RefUnwindSafe for ChannelRole
impl Send for ChannelRole
impl Sync for ChannelRole
impl Unpin for ChannelRole
impl UnwindSafe for ChannelRole
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.