pub struct SourceSink { /* private fields */ }Expand description
USB source/sink function.
Sources and sinks bulk data with configurable isochronous support.
Useful for USB conformance testing and benchmarking with host-side tools
like the usbtest driver.
Implementations§
Source§impl SourceSink
impl SourceSink
Sourcepub fn new() -> (SourceSink, Handle)
pub fn new() -> (SourceSink, Handle)
Creates a new USB source/sink function with default settings.
Sourcepub fn builder() -> SourceSinkBuilder
pub fn builder() -> SourceSinkBuilder
Creates a new USB source/sink function builder.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SourceSink
impl RefUnwindSafe for SourceSink
impl Send for SourceSink
impl Sync for SourceSink
impl Unpin for SourceSink
impl UnsafeUnpin for SourceSink
impl UnwindSafe for SourceSink
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