pub enum ChannelFrom {
Client,
Server,
Either,
}Expand description
Which peer initiates (opens) a Channel.
Variants§
Client
The client opens the channel.
Server
The server opens the channel.
Either
Either peer may open the channel.
Trait Implementations§
Source§impl Clone for ChannelFrom
impl Clone for ChannelFrom
Source§fn clone(&self) -> ChannelFrom
fn clone(&self) -> ChannelFrom
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChannelFrom
impl Debug for ChannelFrom
Source§impl PartialEq for ChannelFrom
impl PartialEq for ChannelFrom
Source§fn eq(&self, other: &ChannelFrom) -> bool
fn eq(&self, other: &ChannelFrom) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ChannelFrom
impl Eq for ChannelFrom
impl StructuralPartialEq for ChannelFrom
Auto Trait Implementations§
impl Freeze for ChannelFrom
impl RefUnwindSafe for ChannelFrom
impl Send for ChannelFrom
impl Sync for ChannelFrom
impl Unpin for ChannelFrom
impl UnsafeUnpin for ChannelFrom
impl UnwindSafe for ChannelFrom
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