pub struct ModemConfig {
pub device: String,
pub speed: u32,
pub flow: FlowControl,
pub init: String,
pub dial: String,
}Expand description
The modem, as set up in the settings.
Fields§
§device: StringThe serial port: /dev/ttyUSB0, /dev/cu.usbmodem1101, COM3…
speed: u32The speed between the computer and the modem.
flow: FlowControl§init: StringSent first, before dialing.
dial: StringPut before the number: ATDT for tone, ATDP for pulse.
Trait Implementations§
Source§impl Clone for ModemConfig
impl Clone for ModemConfig
Source§impl Debug for ModemConfig
impl Debug for ModemConfig
Source§impl Default for ModemConfig
impl Default for ModemConfig
Source§impl<'de> Deserialize<'de> for ModemConfigwhere
ModemConfig: Default,
impl<'de> Deserialize<'de> for ModemConfigwhere
ModemConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModemConfig
Source§impl PartialEq for ModemConfig
impl PartialEq for ModemConfig
Source§impl Serialize for ModemConfig
impl Serialize for ModemConfig
impl StructuralPartialEq for ModemConfig
Auto Trait Implementations§
impl Freeze for ModemConfig
impl RefUnwindSafe for ModemConfig
impl Send for ModemConfig
impl Sync for ModemConfig
impl Unpin for ModemConfig
impl UnsafeUnpin for ModemConfig
impl UnwindSafe for ModemConfig
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