Struct gattii::SerialThread
[−]
[src]
pub struct SerialThread { pub from_port_chan_rx: Receiver<SerialResponse>, pub to_port_chan_tx: Sender<SerialCommand>, }
Fields
from_port_chan_rx: Receiver<SerialResponse>
to_port_chan_tx: Sender<SerialCommand>
Methods
impl SerialThread
[src]
fn new<F: Fn() + Send + 'static>(callback: F) -> Self
fn send_port_open_cmd(
&self,
port_name: String,
baud_rate: String
) -> Result<(), GeneralError>
&self,
port_name: String,
baud_rate: String
) -> Result<(), GeneralError>
fn send_port_close_cmd(&self) -> Result<(), GeneralError>
fn send_port_change_baud_cmd(
&self,
baud_rate: String
) -> Result<(), GeneralError>
&self,
baud_rate: String
) -> Result<(), GeneralError>
fn send_port_change_data_bits_cmd(
&self,
data_bits: DataBits
) -> Result<(), GeneralError>
&self,
data_bits: DataBits
) -> Result<(), GeneralError>
fn send_port_change_flow_control_cmd(
&self,
flow_control: FlowControl
) -> Result<(), GeneralError>
&self,
flow_control: FlowControl
) -> Result<(), GeneralError>
fn send_port_change_stop_bits_cmd(
&self,
stop_bits: StopBits
) -> Result<(), GeneralError>
&self,
stop_bits: StopBits
) -> Result<(), GeneralError>
fn send_port_change_parity_cmd(
&self,
parity: Parity
) -> Result<(), GeneralError>
&self,
parity: Parity
) -> Result<(), GeneralError>
fn send_port_change_port_cmd(
&self,
port_name: String
) -> Result<(), GeneralError>
&self,
port_name: String
) -> Result<(), GeneralError>