[−][src]Struct serial_unit_testing::serial::Serial
Methods
impl Serial
[src]
pub fn open(port_name: &str) -> Result<Serial, String>
[src]
pub fn open_with_settings(
port_name: &str,
settings: &Settings
) -> Result<Serial, String>
[src]
port_name: &str,
settings: &Settings
) -> Result<Serial, String>
pub fn write(&mut self, text: &str) -> Result<(), Error>
[src]
pub fn write_format(
&mut self,
text: &str,
text_format: &TextFormat
) -> Result<(), Error>
[src]
&mut self,
text: &str,
text_format: &TextFormat
) -> Result<(), Error>
pub fn read(&mut self) -> Result<&[u8], Error>
[src]
pub fn read_str(&mut self) -> Result<String, Error>
[src]
pub fn read_min_str(&mut self, min_length: usize) -> Result<String, Error>
[src]
pub fn read_str_with_format(
&mut self,
format: TextFormat
) -> Result<String, Error>
[src]
&mut self,
format: TextFormat
) -> Result<String, Error>
pub fn read_min_str_with_format(
&mut self,
min_length: usize,
format: TextFormat
) -> Result<String, Error>
[src]
&mut self,
min_length: usize,
format: TextFormat
) -> Result<String, Error>
pub fn read_with_timeout(&mut self, timeout: Duration) -> Result<&[u8], Error>
[src]
pub fn read_str_with_timeout(
&mut self,
timeout: Duration
) -> Result<String, Error>
[src]
&mut self,
timeout: Duration
) -> Result<String, Error>
pub fn read_str_with_format_and_timeout(
&mut self,
format: TextFormat,
timeout: Duration
) -> Result<String, Error>
[src]
&mut self,
format: TextFormat,
timeout: Duration
) -> Result<String, Error>
pub fn check(
&mut self,
text: &str,
desired_response: &str
) -> Result<(bool, String), Error>
[src]
&mut self,
text: &str,
desired_response: &str
) -> Result<(bool, String), Error>
pub fn check_read(
&mut self,
desired_response: &str
) -> Result<(bool, String), Error>
[src]
&mut self,
desired_response: &str
) -> Result<(bool, String), Error>
pub fn check_with_settings(
&mut self,
text: &str,
desired_response: &str,
settings: &CheckSettings
) -> Result<(bool, String), Error>
[src]
&mut self,
text: &str,
desired_response: &str,
settings: &CheckSettings
) -> Result<(bool, String), Error>
pub fn check_read_with_settings(
&mut self,
desired_response: &str,
settings: &CheckSettings
) -> Result<(bool, String), Error>
[src]
&mut self,
desired_response: &str,
settings: &CheckSettings
) -> Result<(bool, String), Error>
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,