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),
}realtime only.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 (legacy string format).
Implementations§
Source§impl RealtimeError
impl RealtimeError
Sourcepub fn connection<S>(msg: S) -> RealtimeError
pub fn connection<S>(msg: S) -> RealtimeError
Create a new connection error.
Sourcepub fn server<S>(code: S, message: S) -> RealtimeError
pub fn server<S>(code: S, message: S) -> RealtimeError
Create a new server error.
Sourcepub fn provider<S>(msg: S) -> RealtimeError
pub fn provider<S>(msg: S) -> RealtimeError
Create a new provider error.
Sourcepub fn config<S>(msg: S) -> RealtimeError
pub fn config<S>(msg: S) -> RealtimeError
Create a new configuration error.
Sourcepub fn protocol<S>(msg: S) -> RealtimeError
pub fn protocol<S>(msg: S) -> RealtimeError
Create a new protocol error.
Sourcepub fn audio<S>(msg: S) -> RealtimeError
pub fn audio<S>(msg: S) -> RealtimeError
Create a new audio format error.
Sourcepub fn opus(msg: impl Into<String>) -> RealtimeError
pub fn opus(msg: impl Into<String>) -> RealtimeError
Create a new Opus codec error.
Sourcepub fn webrtc(msg: impl Into<String>) -> RealtimeError
pub fn webrtc(msg: impl Into<String>) -> RealtimeError
Create a new WebRTC error.
Sourcepub fn livekit(msg: impl Into<String>) -> RealtimeError
pub fn livekit(msg: impl Into<String>) -> RealtimeError
Create a new LiveKit 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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for RealtimeError
impl From<Error> for RealtimeError
Source§fn from(source: Error) -> RealtimeError
fn from(source: Error) -> RealtimeError
Source§impl From<Error> for RealtimeError
impl From<Error> for RealtimeError
Source§fn from(source: Error) -> RealtimeError
fn from(source: Error) -> 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> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.