pub struct AtSessionConfig {
pub default_timeout_ms: Option<u64>,
pub default_terminators: Option<Vec<String>>,
pub default_idle_ms: Option<u64>,
pub default_rx_prepare: Option<RxPrepareMode>,
pub default_solicited_prefixes: Option<Vec<String>>,
pub stop_on_error: Option<bool>,
pub expect_ok: Option<bool>,
pub append_cr: Option<bool>,
pub result_format: Option<AtResultFormat>,
}Expand description
Session-level defaults for native at jobs.
Fields§
§default_timeout_ms: Option<u64>§default_terminators: Option<Vec<String>>§default_idle_ms: Option<u64>§default_rx_prepare: Option<RxPrepareMode>§default_solicited_prefixes: Option<Vec<String>>§stop_on_error: Option<bool>§expect_ok: Option<bool>§append_cr: Option<bool>§result_format: Option<AtResultFormat>Implementations§
Source§impl AtSessionConfig
impl AtSessionConfig
pub fn stop_on_error(&self) -> bool
pub fn expect_ok(&self) -> bool
pub fn append_cr(&self) -> bool
pub fn merge_exchange( &self, command: &str, per: Option<&AtCommandOptions>, ) -> ExchangeOptions
pub fn merge_phase(&self, phase: &AtPhase, command: &str) -> ExchangeOptions
Trait Implementations§
Source§impl Clone for AtSessionConfig
impl Clone for AtSessionConfig
Source§impl Debug for AtSessionConfig
impl Debug for AtSessionConfig
Source§impl Default for AtSessionConfig
impl Default for AtSessionConfig
Source§impl<'de> Deserialize<'de> for AtSessionConfig
impl<'de> Deserialize<'de> for AtSessionConfig
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
Auto Trait Implementations§
impl Forget for AtSessionConfig
impl Freeze for AtSessionConfig
impl Move for AtSessionConfig
impl RefUnwindSafe for AtSessionConfig
impl Send for AtSessionConfig
impl Sync for AtSessionConfig
impl Unpin for AtSessionConfig
impl UnsafeUnpin for AtSessionConfig
impl UnwindSafe for AtSessionConfig
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