pub enum RealtimeError {
Show 16 variants
ConnectionError(String),
MessageError(String),
AuthError(String),
NotConnected,
SessionClosed,
ConfigError(String),
AudioFormatError(String),
ToolError(String),
ServerError {
code: String,
message: String,
},
Timeout(String),
SerializationError(Error),
ProviderError(String),
IoError(Error),
OpusCodecError(String),
WebRTCError(String),
LiveKitError(String),
}Expand description
Errors that can occur during realtime operations.
Variants§
ConnectionError(String)
WebSocket connection error.
MessageError(String)
WebSocket message error.
AuthError(String)
Authentication error.
NotConnected
Session not connected.
SessionClosed
Session already closed.
ConfigError(String)
Invalid configuration.
AudioFormatError(String)
Audio format error.
ToolError(String)
Tool execution error.
ServerError
Server returned an error.
Timeout(String)
Timeout waiting for response.
SerializationError(Error)
Serialization/deserialization error.
ProviderError(String)
Provider-specific error.
IoError(Error)
Generic IO error.
OpusCodecError(String)
Opus codec error.
WebRTCError(String)
WebRTC error.
LiveKitError(String)
LiveKit bridge error.
Implementations§
Source§impl RealtimeError
impl RealtimeError
Sourcepub fn connection<S: Into<String>>(msg: S) -> Self
pub fn connection<S: Into<String>>(msg: S) -> Self
Create a new connection error.
Trait Implementations§
Source§impl Debug for RealtimeError
impl Debug for RealtimeError
Source§impl Display for RealtimeError
impl Display for RealtimeError
Source§impl Error for RealtimeError
impl Error for RealtimeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for RealtimeError
impl From<Error> for RealtimeError
Auto Trait Implementations§
impl Freeze for RealtimeError
impl !RefUnwindSafe for RealtimeError
impl Send for RealtimeError
impl Sync for RealtimeError
impl Unpin for RealtimeError
impl UnsafeUnpin for RealtimeError
impl !UnwindSafe for RealtimeError
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