pub struct SerialRuntimeHandle { /* private fields */ }Expand description
Cloneable OS-facing façade for one UART runtime.
Implementations§
Source§impl SerialRuntimeHandle
impl SerialRuntimeHandle
pub fn info(&self) -> &SerialDeviceInfo
Sourcepub fn take_rx_subscription(&self) -> Option<SerialRxSubscription>
pub fn take_rx_subscription(&self) -> Option<SerialRxSubscription>
Leases the only RX subscription.
Dropping the subscription returns the consumer to this runtime so a failed owner initialization does not permanently consume the RX path.
Sourcepub fn task_output(&self) -> SerialTaskOutput
pub fn task_output(&self) -> SerialTaskOutput
Returns a cloneable task-context output capability for this UART.
This per-port API is used by operating systems that expose non-console
serial devices. Physical-console consumers should use
crate::console::output so raw-HAL fallback and failed-closed state
remain hidden behind the console boundary.
pub fn start(&self, config: Config) -> RuntimeResult
pub fn shutdown(&self) -> RuntimeResult
pub fn set_config(&self, config: Config) -> RuntimeResult
Trait Implementations§
Source§impl Clone for SerialRuntimeHandle
impl Clone for SerialRuntimeHandle
Source§fn clone(&self) -> SerialRuntimeHandle
fn clone(&self) -> SerialRuntimeHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SerialRuntimeHandle
impl !UnwindSafe for SerialRuntimeHandle
impl Freeze for SerialRuntimeHandle
impl Send for SerialRuntimeHandle
impl Sync for SerialRuntimeHandle
impl Unpin for SerialRuntimeHandle
impl UnsafeUnpin for SerialRuntimeHandle
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