pub enum ChannelEndWithCapacity {
Sender,
Receiver(u32),
}
Expand description
Sending or receiving end and capacity of a channel.
Variants§
Trait Implementations§
source§impl<'arbitrary> Arbitrary<'arbitrary> for ChannelEndWithCapacity
impl<'arbitrary> Arbitrary<'arbitrary> for ChannelEndWithCapacity
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl Clone for ChannelEndWithCapacity
impl Clone for ChannelEndWithCapacity
source§fn clone(&self) -> ChannelEndWithCapacity
fn clone(&self) -> ChannelEndWithCapacity
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 ChannelEndWithCapacity
impl Debug for ChannelEndWithCapacity
source§impl From<ChannelEndWithCapacity> for ChannelEnd
impl From<ChannelEndWithCapacity> for ChannelEnd
source§fn from(value: ChannelEndWithCapacity) -> Self
fn from(value: ChannelEndWithCapacity) -> Self
Converts to this type from the input type.
source§impl PartialEq for ChannelEndWithCapacity
impl PartialEq for ChannelEndWithCapacity
source§fn eq(&self, other: &ChannelEndWithCapacity) -> bool
fn eq(&self, other: &ChannelEndWithCapacity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChannelEndWithCapacity
impl Eq for ChannelEndWithCapacity
impl StructuralPartialEq for ChannelEndWithCapacity
Auto Trait Implementations§
impl Freeze for ChannelEndWithCapacity
impl RefUnwindSafe for ChannelEndWithCapacity
impl Send for ChannelEndWithCapacity
impl Sync for ChannelEndWithCapacity
impl Unpin for ChannelEndWithCapacity
impl UnwindSafe for ChannelEndWithCapacity
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