pub enum SyndApiError {
Show 21 variants
Unauthorized {
url: Option<Url>,
},
BuildRequest(Error),
SendRequest(Error),
DecodeResponse(Error),
HttpStatus {
status: StatusCode,
url: Option<Url>,
},
Graphql {
errors: Vec<Error>,
},
OpenSession(OpenSessionErrorResponse),
RenewSession(RenewSessionErrorResponse),
CloseSession(CloseSessionErrorResponse),
MissingCredential,
InvalidHeader(InvalidHeaderValue),
InvalidUrl(ParseError),
InvalidRootCertificate {
message: String,
},
TlsConfiguration {
message: String,
},
WebSocket(Error),
Json(Error),
UnexpectedResponse {
context: &'static str,
},
UnsupportedWebSocketScheme {
scheme: String,
},
SetWebSocketScheme,
SubscriptionProtocol {
message: String,
},
FeedEventWatchClosed {
code: Option<u16>,
reason: String,
},
}Variants§
Fields
BuildRequest(Error)
SendRequest(Error)
DecodeResponse(Error)
HttpStatus
Graphql
OpenSession(OpenSessionErrorResponse)
RenewSession(RenewSessionErrorResponse)
CloseSession(CloseSessionErrorResponse)
MissingCredential
InvalidHeader(InvalidHeaderValue)
InvalidUrl(ParseError)
InvalidRootCertificate
TlsConfiguration
WebSocket(Error)
Json(Error)
UnexpectedResponse
UnsupportedWebSocketScheme
SetWebSocketScheme
SubscriptionProtocol
FeedEventWatchClosed
Implementations§
Source§impl SyndApiError
impl SyndApiError
pub fn retryability(&self) -> Retryability
Trait Implementations§
Source§impl Debug for SyndApiError
impl Debug for SyndApiError
Source§impl Display for SyndApiError
impl Display for SyndApiError
Source§impl Error for SyndApiError
impl Error for SyndApiError
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 SyndApiError
impl From<Error> for SyndApiError
Source§impl From<Error> for SyndApiError
impl From<Error> for SyndApiError
Source§impl From<InvalidHeaderValue> for SyndApiError
impl From<InvalidHeaderValue> for SyndApiError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for SyndApiError
impl From<ParseError> for SyndApiError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SyndApiError
impl !UnwindSafe for SyndApiError
impl Freeze for SyndApiError
impl Send for SyndApiError
impl Sync for SyndApiError
impl Unpin for SyndApiError
impl UnsafeUnpin for SyndApiError
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> 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> 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