Enum chik_protocol::RejectStateReason
source · #[repr(u8)]pub enum RejectStateReason {
Reorg = 0,
ExceededSubscriptionLimit = 1,
}Variants§
Trait Implementations§
source§impl Clone for RejectStateReason
impl Clone for RejectStateReason
source§fn clone(&self) -> RejectStateReason
fn clone(&self) -> RejectStateReason
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 RejectStateReason
impl Debug for RejectStateReason
source§impl Hash for RejectStateReason
impl Hash for RejectStateReason
source§impl Ord for RejectStateReason
impl Ord for RejectStateReason
source§fn cmp(&self, other: &RejectStateReason) -> Ordering
fn cmp(&self, other: &RejectStateReason) -> 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 RejectStateReason
impl PartialEq for RejectStateReason
source§fn eq(&self, other: &RejectStateReason) -> bool
fn eq(&self, other: &RejectStateReason) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for RejectStateReason
impl PartialOrd for RejectStateReason
source§fn partial_cmp(&self, other: &RejectStateReason) -> Option<Ordering>
fn partial_cmp(&self, other: &RejectStateReason) -> 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 Streamable for RejectStateReason
impl Streamable for RejectStateReason
fn update_digest(&self, digest: &mut Sha256)
fn stream(&self, out: &mut Vec<u8>) -> Result<()>
fn parse<const TRUSTED: bool>(input: &mut Cursor<&[u8]>) -> Result<Self>
fn to_bytes(&self) -> Result<Vec<u8>, Error>
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn from_bytes_unchecked(bytes: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn hash(&self) -> [u8; 32]
impl Copy for RejectStateReason
impl Eq for RejectStateReason
impl StructuralPartialEq for RejectStateReason
Auto Trait Implementations§
impl Freeze for RejectStateReason
impl RefUnwindSafe for RejectStateReason
impl Send for RejectStateReason
impl Sync for RejectStateReason
impl Unpin for RejectStateReason
impl UnwindSafe for RejectStateReason
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)