#[repr(i32)]pub enum Direction {
Tx = 0,
Rx = 1,
Both = -1,
}
Expand description
Specifies the direction of an AF_XDP socket.
Variants§
Tx = 0
Transmit-only socket.
Rx = 1
Receive-only socket.
Both = -1
Bidirectional socket (both transmit and receive).
Trait Implementations§
impl Copy 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