pub struct Serial { /* private fields */ }Expand description
USB serial function.
Implementations§
Source§impl Serial
impl Serial
Sourcepub fn new(serial_class: SerialClass) -> (Serial, Handle)
pub fn new(serial_class: SerialClass) -> (Serial, Handle)
Creates a new USB serial function.
Sourcepub fn builder(serial_class: SerialClass) -> SerialBuilder
pub fn builder(serial_class: SerialClass) -> SerialBuilder
Creates a new USB serial function builder.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Serial
impl RefUnwindSafe for Serial
impl Send for Serial
impl Sync for Serial
impl Unpin for Serial
impl UnsafeUnpin for Serial
impl UnwindSafe for Serial
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