Struct playdate_device::serial::Interface
source · pub struct Interface { /* private fields */ }Implementations§
source§impl Interface
impl Interface
pub fn new(info: SerialPortInfo) -> Self
pub fn new_with(port: Box<SerialStream>, name: Option<String>) -> Self
pub fn info(&self) -> &SerialPortInfo
pub fn is_open(&self) -> bool
pub fn set_port(&mut self, port: Box<SerialStream>)
pub fn open(&mut self) -> Result<(), Error>
pub fn close(&mut self)
Trait Implementations§
impl In for Interface
impl In for Interface
impl Send for Interface
impl Sync for Interface
Auto Trait Implementations§
impl !Freeze for Interface
impl !RefUnwindSafe for Interface
impl Unpin for Interface
impl !UnwindSafe for Interface
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> UnmountAsync for Twhere
T: Out,
impl<T> UnmountAsync for Twhere
T: Out,
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> Interface for T
impl<T> Interface for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 128 bytes