pub enum FlowcatError {
Transport(String),
Serializer(String),
Realtime(String),
Codec(String),
Session(String),
Network(String),
Protocol(String),
Json(Error),
Io(Error),
Other(String),
}Expand description
Errors surfaced by the Flowcat runtime.
Variants are intentionally broad; implementation agents may add fields or
new variants as needed, but should keep FlowcatError as the single error
type that flows through the trait contracts (see DESIGN.md “Trait contracts”).
Variants§
Transport(String)
The media transport / socket failed (connection closed, send error, …).
Serializer(String)
A per-carrier serializer could not parse or encode a frame.
Realtime(String)
The realtime speech-to-speech model (e.g. Gemini Live) errored.
Codec(String)
Audio codec / resampling failure (G.711, rubato, …).
Session(String)
Session bootstrap / finalize against the control plane failed.
Network(String)
A network/HTTP call failed.
Protocol(String)
(De)serialization of a protocol/JSON frame failed.
Json(Error)
Underlying JSON (de)serialization error.
Io(Error)
Underlying I/O error.
Other(String)
A catch-all for anything not yet categorized.
Trait Implementations§
Source§impl Debug for FlowcatError
impl Debug for FlowcatError
Source§impl Display for FlowcatError
impl Display for FlowcatError
Source§impl Error for FlowcatError
impl Error for FlowcatError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()