pub enum ProtobufError {
LocalSrcUriParseErr(LocalSrcUriParseError),
ExpectedElement(&'static str, Box<str>),
NoElement,
NoElementForId(Box<str>),
CallbackUrlParseErr(CallbackUrlParseError),
InvalidDuration(Box<str>, &'static str),
ParseFidErr(ParseFidError),
TimeParseErr(Parse),
Unimplemented,
}
Expand description
Possible errors of deserializing types from gRPC spec.
Variants§
LocalSrcUriParseErr(LocalSrcUriParseError)
Error of parsing a LocalSrcUri
of a WebRtcPlay
media
Element
.
ExpectedElement(&'static str, Box<str>)
Element
is expected to be of another type.
NoElement
Element
is expected to be specified.
NoElementForId(Box<str>)
CallbackUrlParseErr(CallbackUrlParseError)
Error of parsing a CallbackUrl
.
InvalidDuration(Box<str>, &'static str)
ParseFidErr(ParseFidError)
Error of parsing a Fid
.
TimeParseErr(Parse)
Error of parsing a DateTime
.
Unimplemented
Such API call is unimplemented.
Trait Implementations§
Source§impl Debug for ProtobufError
impl Debug for ProtobufError
Source§impl Display for ProtobufError
impl Display for ProtobufError
Source§impl Error for ProtobufError
impl Error for ProtobufError
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<CallbackUrlParseError> for ProtobufError
impl From<CallbackUrlParseError> for ProtobufError
Source§fn from(value: CallbackUrlParseError) -> Self
fn from(value: CallbackUrlParseError) -> Self
Converts to this type from the input type.
Source§impl From<LocalSrcUriParseError> for ProtobufError
impl From<LocalSrcUriParseError> for ProtobufError
Source§fn from(value: LocalSrcUriParseError) -> Self
fn from(value: LocalSrcUriParseError) -> Self
Converts to this type from the input type.
Source§impl From<Parse> for ProtobufError
impl From<Parse> for ProtobufError
Source§impl From<ParseFidError> for ProtobufError
impl From<ParseFidError> for ProtobufError
Source§fn from(value: ParseFidError) -> Self
fn from(value: ParseFidError) -> Self
Converts to this type from the input type.
Source§impl From<ProtobufError> for CallbackApiClientError
impl From<ProtobufError> for CallbackApiClientError
Source§fn from(value: ProtobufError) -> Self
fn from(value: ProtobufError) -> Self
Converts to this type from the input type.
Source§impl From<ProtobufError> for ControlApiClientError
impl From<ProtobufError> for ControlApiClientError
Source§fn from(value: ProtobufError) -> Self
fn from(value: ProtobufError) -> Self
Converts to this type from the input type.
Source§impl From<ProtobufError> for Status
impl From<ProtobufError> for Status
Source§fn from(err: ProtobufError) -> Self
fn from(err: ProtobufError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProtobufError
impl RefUnwindSafe for ProtobufError
impl Send for ProtobufError
impl Sync for ProtobufError
impl Unpin for ProtobufError
impl UnwindSafe for ProtobufError
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request