pub struct SerialParts<C, I, E> {
pub control: C,
pub irq: I,
pub emergency_tx: E,
}Expand description
Independently owned task, hard-IRQ, and emergency-TX endpoints.
Fields§
§control: CTask-context data and control endpoint.
irq: IHard-IRQ event and bounded-RX endpoint.
emergency_tx: EPanic-only non-blocking transmitter endpoint.
Implementations§
Source§impl<C, I, E> SerialParts<C, I, E>
impl<C, I, E> SerialParts<C, I, E>
Sourcepub const fn new(control: C, irq: I, emergency_tx: E) -> SerialParts<C, I, E>
pub const fn new(control: C, irq: I, emergency_tx: E) -> SerialParts<C, I, E>
Creates a set of disjoint runtime endpoints.
Auto Trait Implementations§
impl<C, I, E> Freeze for SerialParts<C, I, E>
impl<C, I, E> RefUnwindSafe for SerialParts<C, I, E>
impl<C, I, E> Send for SerialParts<C, I, E>
impl<C, I, E> Sync for SerialParts<C, I, E>
impl<C, I, E> Unpin for SerialParts<C, I, E>
impl<C, I, E> UnsafeUnpin for SerialParts<C, I, E>
impl<C, I, E> UnwindSafe for SerialParts<C, I, E>
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