Lines Matching refs:Transfer
28 pub struct Transfer { struct
33 callback: Option<Box<dyn Fn(Transfer) + Send + Sync>>, argument
41 weak_transfer: std::sync::Weak<Transfer>,
106 pub fn submit_transfer(&mut self, transfer: Transfer) -> Result<TransferHandle> { in submit_transfer()
115 let raw_transfer = (&*rc_transfer) as *const Transfer as usize; in submit_transfer() constant
168 let rc_transfer: Arc<Transfer> = in poll_transfers()
169 unsafe { Arc::from_raw((*urb_ptr).usercontext as *const Transfer) }; in poll_transfers() constant
329 impl Transfer { implementation
345 ) -> Result<Transfer> { in new() argument
346 let mut transfer = Transfer { in new()
377 pub fn new_control(buffer: Vec<u8>) -> Result<Transfer> { in new_control() argument
383 pub fn new_interrupt(endpoint: u8, buffer: Vec<u8>) -> Result<Transfer> { in new_interrupt() argument
388 pub fn new_bulk(endpoint: u8, buffer: Vec<u8>) -> Result<Transfer> { in new_bulk() argument
393 pub fn new_isochronous(endpoint: u8, buffer: Vec<u8>) -> Result<Transfer> { in new_isochronous() argument
419 pub fn set_callback<C: 'static + Fn(Transfer) + Send + Sync>(&mut self, cb: C) { in set_callback()