pub struct ChannelState(pub i64);
Tuple Fields§
§0: i64
Implementations§
Source§impl ChannelState
impl ChannelState
pub const CONNECTING: ChannelState
pub const OPEN: ChannelState
pub const CLOSING: ChannelState
pub const CLOSED: ChannelState
Trait Implementations§
Source§impl Clone for ChannelState
impl Clone for ChannelState
Source§fn clone(&self) -> ChannelState
fn clone(&self) -> ChannelState
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChannelState
impl Debug for ChannelState
Source§impl From<ChannelState> for i64
impl From<ChannelState> for i64
Source§fn from(v: ChannelState) -> Self
fn from(v: ChannelState) -> Self
Converts to this type from the input type.
Source§impl From<i64> for ChannelState
impl From<i64> for ChannelState
Source§impl FromVariant for ChannelState
impl FromVariant for ChannelState
fn from_variant(v: &Variant) -> Result<Self, FromVariantError>
Source§impl Hash for ChannelState
impl Hash for ChannelState
Source§impl Ord for ChannelState
impl Ord for ChannelState
Source§fn cmp(&self, other: &ChannelState) -> Ordering
fn cmp(&self, other: &ChannelState) -> 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 for ChannelState
impl PartialEq for ChannelState
Source§impl PartialOrd for ChannelState
impl PartialOrd for ChannelState
impl Copy for ChannelState
impl Eq for ChannelState
impl StructuralPartialEq for ChannelState
Auto Trait Implementations§
impl Freeze for ChannelState
impl RefUnwindSafe for ChannelState
impl Send for ChannelState
impl Sync for ChannelState
impl Unpin for ChannelState
impl UnwindSafe for ChannelState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.