Struct usb_util::device::TransferHandle
source · pub struct TransferHandle {
weak_transfer: Weak<Transfer>,
fd: Weak<File>,
}
Expand description
TransferHandle is a handle that allows cancellation of in-flight transfers between submit_transfer() and get_completed_transfer(). Attempting to cancel a transfer that has already completed is safe and will return an error.
Fields§
§weak_transfer: Weak<Transfer>
§fd: Weak<File>
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TransferHandle
impl Send for TransferHandle
impl Sync for TransferHandle
impl Unpin for TransferHandle
impl !UnwindSafe for TransferHandle
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