pub enum Direction {
Unspecified = 0,
SendRecv = 1,
SendOnly = 2,
RecvOnly = 3,
Inactive = 4,
}
Expand description
Direction is a marker for transmission direction of an endpoint
Variants§
Unspecified = 0
SendRecv = 1
Direction::SendRecv is for bidirectional communication
SendOnly = 2
Direction::SendOnly is for outgoing communication
RecvOnly = 3
Direction::RecvOnly is for incoming communication
Inactive = 4
Direction::Inactive is for no communication
Implementations§
Trait Implementations§
source§impl PartialEq for Direction
impl PartialEq for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnwindSafe for Direction
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