Struct usbapi::usb_transfer::BulkTransfer [−][src]
pub struct BulkTransfer { pub buffer_length: usize, pub actual_length: usize, pub status: i32, pub buffer_capacity: usize, pub endpoint: Endpoint, // some fields omitted }
Fields
buffer_length: usize
actual_length: usize
status: i32
buffer_capacity: usize
endpoint: Endpoint
Implementations
impl BulkTransfer
[src]
impl BulkTransfer
[src]Trait Implementations
impl BufferSlice for BulkTransfer
[src]
impl BufferSlice for BulkTransfer
[src]fn buffer_from_raw<'a>(&self) -> &'a [u8]
[src]
fn buffer_from_raw<'a>(&self) -> &'a [u8]
[src]return buffer slice from raw pointer panic in case actual_length or buffer_capacity is incorrect Should not happen but if it does we should fix the broken code. return empty slice if length is 0
impl Display for BulkTransfer
[src]
impl Display for BulkTransfer
[src]impl Drop for BulkTransfer
[src]
impl Drop for BulkTransfer
[src]impl Write for BulkTransfer
[src]
impl Write for BulkTransfer
[src]fn write(&mut self, inbuf: &[u8]) -> Result<usize>
[src]
fn write(&mut self, inbuf: &[u8]) -> Result<usize>
[src]Write a buffer into this writer, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
[src]
fn flush(&mut self) -> Result<()>
[src]Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn is_write_vectored(&self) -> bool
[src]
fn is_write_vectored(&self) -> bool
[src]🔬 This is a nightly-only experimental API. (
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]Attempts to write an entire buffer into this writer. Read more
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
[src]
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
[src]🔬 This is a nightly-only experimental API. (
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations
impl !RefUnwindSafe for BulkTransfer
impl !Send for BulkTransfer
impl !Sync for BulkTransfer
impl Unpin for BulkTransfer
impl !UnwindSafe for BulkTransfer
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more