Skip to main content

Module events

Module events 

Source
Expand description

Streaming event types, event sinks and watch / exchange options.

Structs§

ExchangeOptions
Options for SerialManager::exchange (write + read-until-response).
SubscriptionId
Id of a SerialManager::watch_core stream or a SerialManager::subscribe_core subscription.
WatchOptions
Options for SerialManager::watch. Unknown keys are ignored (as in 4.0.0). A native parser is passed separately, see SerialManager::watch_framed.
WatchPortsOptions
Options for SerialManager::watch_ports.

Enums§

AtResultFormat
AT result line format (V.250 verbose vs numeric ATV0).
CoreEvent
Event of the core’s new API (see CoreSink).
ExchangeCompletionMode
When an exchange read is considered complete.
PortListEvent
Port list change events delivered to a PortListSink.
PortStatus
A port’s state change in CoreEvent::PortState.
RxPrepareMode
How RX is prepared before sending an exchange payload.
SerialEvent
Event delivered to an EventSink (in the Tauri plugin: to the webview channel, as JSON).

Constants§

DEFAULT_CORE_QUEUE_BYTES
Default per-subscription queue of the core’s Rust receivers (4 MiB of event data).

Type Aliases§

CoreSink
Receives the events of the core’s new API: one SerialManager::watch_core stream or the port states of SerialManager::subscribe_core.
EventSink
Receives the events of one SerialManager::watch.
PortListSink
Receives PortListEvents of one SerialManager::watch_ports. Returning false ends the subscription.