pub enum BackendTransferType {
HostDevice(Transfer),
FidoDevice(FidoTransfer),
}
Variants§
HostDevice(Transfer)
FidoDevice(FidoTransfer)
Trait Implementations§
source§impl BackendTransfer for BackendTransferType
impl BackendTransfer for BackendTransferType
source§fn status(&self) -> TransferStatus
fn status(&self) -> TransferStatus
Returns the status of the transfer in a
TransferStatus
enumsource§fn actual_length(&self) -> usize
fn actual_length(&self) -> usize
Returns the actual amount of data transferred, which may be less than the original length.
source§fn buffer(&self) -> &TransferBuffer
fn buffer(&self) -> &TransferBuffer
Returns a reference to the
TransferBuffer
object.source§fn set_callback<C: 'static + Fn(BackendTransferType) + Send + Sync>(
&mut self,
cb: C
)
fn set_callback<C: 'static + Fn(BackendTransferType) + Send + Sync>( &mut self, cb: C )
Sets an optional callback on the transfer to be called when the transfer completes.
Auto Trait Implementations§
impl !RefUnwindSafe for BackendTransferType
impl Send for BackendTransferType
impl Sync for BackendTransferType
impl Unpin for BackendTransferType
impl !UnwindSafe for BackendTransferType
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.