pub enum Pipe {
In0,
In1,
In2,
In3,
Out0,
Out1,
Out2,
Out3,
}
Expand description
Represents a pipe used for communication with a D3XX device.
Variants§
In0
Input pipe 0 (0x82).
In1
Input pipe 1 (0x83).
In2
Input pipe 2 (0x84).
In3
Input pipe 3 (0x85).
Out0
Output pipe 0 (0x02).
Out1
Output pipe 1 (0x03).
Out2
Output pipe 2 (0x04).
Out3
Output pipe 3 (0x05).
Implementations§
source§impl Pipe
impl Pipe
sourcepub fn is_read_pipe(&self) -> bool
pub fn is_read_pipe(&self) -> bool
Check if the pipe is a read pipe.
sourcepub fn is_write_pipe(&self) -> bool
pub fn is_write_pipe(&self) -> bool
Check if the pipe is a write pipe.
Trait Implementations§
source§impl Ord for Pipe
impl Ord for Pipe
source§impl PartialEq<Pipe> for Pipe
impl PartialEq<Pipe> for Pipe
source§impl PartialOrd<Pipe> for Pipe
impl PartialOrd<Pipe> for Pipe
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Pipe
impl Eq for Pipe
impl StructuralEq for Pipe
impl StructuralPartialEq for Pipe
Auto Trait Implementations§
impl RefUnwindSafe for Pipe
impl Send for Pipe
impl Sync for Pipe
impl Unpin for Pipe
impl UnwindSafe for Pipe
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