pub struct LinuxNonblockingSerialPort(/* private fields */);Expand description
Native nonblocking UART for resource stacks. Configure a serial slot with
serialN_nonblocking: true to export this type.
Implementations§
Source§impl LinuxNonblockingSerialPort
impl LinuxNonblockingSerialPort
pub fn open_with_config(config: &SerialSlotConfig) -> Result<Self>
Sourcepub fn from_native(port: TTYPort) -> Result<Self>
pub fn from_native(port: TTYPort) -> Result<Self>
Take ownership of an already configured native UART.
Trait Implementations§
Source§impl Debug for LinuxNonblockingSerialPort
impl Debug for LinuxNonblockingSerialPort
Source§impl ErrorType for LinuxNonblockingSerialPort
Available on Unix only.
impl ErrorType for LinuxNonblockingSerialPort
Available on Unix only.
Auto Trait Implementations§
impl Freeze for LinuxNonblockingSerialPort
impl RefUnwindSafe for LinuxNonblockingSerialPort
impl Send for LinuxNonblockingSerialPort
impl Sync for LinuxNonblockingSerialPort
impl Unpin for LinuxNonblockingSerialPort
impl UnsafeUnpin for LinuxNonblockingSerialPort
impl UnwindSafe for LinuxNonblockingSerialPort
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
impl<T> GetTypeRegistration for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more