#[repr(C)]pub struct UsbfsStreams { /* private fields */ }Expand description
Represents USBFS stream information.
Implementations§
Source§impl UsbfsStreams
impl UsbfsStreams
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new UsbfsStreams.
Sourcepub const fn num_streams(&self) -> u32
pub const fn num_streams(&self) -> u32
Gets the number of streams.
Sourcepub fn set_num_streams(&mut self, num_streams: u32)
pub fn set_num_streams(&mut self, num_streams: u32)
Sets the number of streams.
Sourcepub fn with_num_streams(self, num_streams: u32) -> Self
pub fn with_num_streams(self, num_streams: u32) -> Self
Builder function that sets the number of streams.
Sourcepub fn set_eps<E: IntoIterator<Item = u8>>(&mut self, eps: E)
pub fn set_eps<E: IntoIterator<Item = u8>>(&mut self, eps: E)
Sets the list of endpoints.
Sourcepub fn with_eps<E: IntoIterator<Item = u8>>(self, eps: E) -> Self
pub fn with_eps<E: IntoIterator<Item = u8>>(self, eps: E) -> Self
Builder function that sets the list of endpoints.
Trait Implementations§
Source§impl Clone for UsbfsStreams
impl Clone for UsbfsStreams
Source§fn clone(&self) -> UsbfsStreams
fn clone(&self) -> UsbfsStreams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UsbfsStreams
impl Debug for UsbfsStreams
Source§impl Default for UsbfsStreams
impl Default for UsbfsStreams
Source§fn default() -> UsbfsStreams
fn default() -> UsbfsStreams
Returns the “default value” for a type. Read more
Source§impl Display for UsbfsStreams
impl Display for UsbfsStreams
Source§impl PartialEq for UsbfsStreams
impl PartialEq for UsbfsStreams
impl StructuralPartialEq for UsbfsStreams
Auto Trait Implementations§
impl Freeze for UsbfsStreams
impl RefUnwindSafe for UsbfsStreams
impl Send for UsbfsStreams
impl Sync for UsbfsStreams
impl Unpin for UsbfsStreams
impl UnwindSafe for UsbfsStreams
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