pub enum ChannelDirection {
ClientToServer,
ServerToClient,
Bidirectional,
}Expand description
Permitted send direction(s) for a channel.
Variants§
ClientToServer
Only the client may send on this channel.
ServerToClient
Only the server may send on this channel.
Bidirectional
Both endpoints may send on this channel.
Trait Implementations§
Source§impl Clone for ChannelDirection
impl Clone for ChannelDirection
Source§fn clone(&self) -> ChannelDirection
fn clone(&self) -> ChannelDirection
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 PartialEq for ChannelDirection
impl PartialEq for ChannelDirection
Source§fn eq(&self, other: &ChannelDirection) -> bool
fn eq(&self, other: &ChannelDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ChannelDirection
impl StructuralPartialEq for ChannelDirection
Auto Trait Implementations§
impl Freeze for ChannelDirection
impl RefUnwindSafe for ChannelDirection
impl Send for ChannelDirection
impl Sync for ChannelDirection
impl Unpin for ChannelDirection
impl UnsafeUnpin for ChannelDirection
impl UnwindSafe for ChannelDirection
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