pub enum TransceiverDirection {
SendRecv,
SendOnly,
RecvOnly,
Inactive,
}Variants§
Implementations§
Source§impl TransceiverDirection
impl TransceiverDirection
pub fn answer_direction(self) -> Self
pub fn sends(self) -> bool
Trait Implementations§
Source§impl Clone for TransceiverDirection
impl Clone for TransceiverDirection
Source§fn clone(&self) -> TransceiverDirection
fn clone(&self) -> TransceiverDirection
Returns a duplicate 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 TransceiverDirection
impl Debug for TransceiverDirection
Source§impl Default for TransceiverDirection
impl Default for TransceiverDirection
Source§fn default() -> TransceiverDirection
fn default() -> TransceiverDirection
Returns the “default value” for a type. Read more
Source§impl From<Direction> for TransceiverDirection
impl From<Direction> for TransceiverDirection
Source§impl From<TransceiverDirection> for Direction
impl From<TransceiverDirection> for Direction
Source§fn from(value: TransceiverDirection) -> Self
fn from(value: TransceiverDirection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransceiverDirection
impl PartialEq for TransceiverDirection
impl Copy for TransceiverDirection
impl Eq for TransceiverDirection
impl StructuralPartialEq for TransceiverDirection
Auto Trait Implementations§
impl Freeze for TransceiverDirection
impl RefUnwindSafe for TransceiverDirection
impl Send for TransceiverDirection
impl Sync for TransceiverDirection
impl Unpin for TransceiverDirection
impl UnwindSafe for TransceiverDirection
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