pub struct WatchOptions {
pub timeout: Option<u64>,
pub size: Option<usize>,
pub serial_data_flush_interval_ms: Option<u64>,
pub route_urc: bool,
}Expand description
Options for SerialManager::watch. Unknown keys are
ignored (as in 4.0.0). A native parser is passed separately, see
SerialManager::watch_framed.
Fields§
§timeout: Option<u64>§size: Option<usize>§serial_data_flush_interval_ms: Option<u64>§route_urc: boolWhen true, idle watch RX is line-routed so AT URC lines become
SerialEvent::Urc instead of raw data. Default false: bytes are
forwarded unchanged (binary / NMEA / non-AT streams).
The JS guest sets this automatically when onUrc is provided.
Trait Implementations§
Source§impl Clone for WatchOptions
impl Clone for WatchOptions
Source§impl Debug for WatchOptions
impl Debug for WatchOptions
Source§impl Default for WatchOptions
impl Default for WatchOptions
Source§impl<'de> Deserialize<'de> for WatchOptions
impl<'de> Deserialize<'de> for WatchOptions
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 WatchOptions
impl Freeze for WatchOptions
impl RefUnwindSafe for WatchOptions
impl Send for WatchOptions
impl Sync for WatchOptions
impl Unpin for WatchOptions
impl UnsafeUnpin for WatchOptions
impl UnwindSafe for WatchOptions
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