[−][src]Struct gattii::SerialThread
Fields
from_port_chan_rx: Receiver<SerialResponse>
to_port_chan_tx: Sender<SerialCommand>
Methods
impl SerialThread
[src]
impl SerialThread
pub fn new<F: Fn() + Send + 'static>(callback: F) -> Self
[src]
pub fn new<F: Fn() + Send + 'static>(callback: F) -> Self
pub fn send_port_open_cmd(
&self,
port_name: String,
baud_rate: String
) -> Result<(), GeneralError>
[src]
pub fn send_port_open_cmd(
&self,
port_name: String,
baud_rate: String
) -> Result<(), GeneralError>
pub fn send_port_close_cmd(&self) -> Result<(), GeneralError>
[src]
pub fn send_port_close_cmd(&self) -> Result<(), GeneralError>
pub fn send_port_change_baud_cmd(
&self,
baud_rate: String
) -> Result<(), GeneralError>
[src]
pub fn send_port_change_baud_cmd(
&self,
baud_rate: String
) -> Result<(), GeneralError>
pub fn send_port_change_data_bits_cmd(
&self,
data_bits: DataBits
) -> Result<(), GeneralError>
[src]
pub fn send_port_change_data_bits_cmd(
&self,
data_bits: DataBits
) -> Result<(), GeneralError>
pub fn send_port_change_flow_control_cmd(
&self,
flow_control: FlowControl
) -> Result<(), GeneralError>
[src]
pub fn send_port_change_flow_control_cmd(
&self,
flow_control: FlowControl
) -> Result<(), GeneralError>
pub fn send_port_change_stop_bits_cmd(
&self,
stop_bits: StopBits
) -> Result<(), GeneralError>
[src]
pub fn send_port_change_stop_bits_cmd(
&self,
stop_bits: StopBits
) -> Result<(), GeneralError>
pub fn send_port_change_parity_cmd(
&self,
parity: Parity
) -> Result<(), GeneralError>
[src]
pub fn send_port_change_parity_cmd(
&self,
parity: Parity
) -> Result<(), GeneralError>
pub fn send_port_change_port_cmd(
&self,
port_name: String
) -> Result<(), GeneralError>
[src]
pub fn send_port_change_port_cmd(
&self,
port_name: String
) -> Result<(), GeneralError>
pub fn send_port_data_cmd(&self, data: &[u8]) -> Result<(), GeneralError>
[src]
pub fn send_port_data_cmd(&self, data: &[u8]) -> Result<(), GeneralError>
pub fn send_port_file_cmd(&self, path: PathBuf) -> Result<(), GeneralError>
[src]
pub fn send_port_file_cmd(&self, path: PathBuf) -> Result<(), GeneralError>
pub fn send_cancel_file_cmd(&self) -> Result<(), GeneralError>
[src]
pub fn send_cancel_file_cmd(&self) -> Result<(), GeneralError>
pub fn send_log_to_file_cmd(&self, path: PathBuf) -> Result<(), GeneralError>
[src]
pub fn send_log_to_file_cmd(&self, path: PathBuf) -> Result<(), GeneralError>
pub fn send_cancel_log_to_file_cmd(&self) -> Result<(), GeneralError>
[src]
pub fn send_cancel_log_to_file_cmd(&self) -> Result<(), GeneralError>
Auto Trait Implementations
impl Send for SerialThread
impl Send for SerialThread
impl !Sync for SerialThread
impl !Sync for SerialThread
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
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]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId