Enum workflow_rpc::asynchronous::client::error::Error
source · [−]pub enum Error {
Show 19 variants
InvalidUrl(String),
WebSocketError(WebSocketError),
Timeout,
ReceiverCtl,
HeaderSize,
NoDataInSuccessResponse,
NoDataInErrorResponse,
ErrorDeserializingResponseData,
StatusCode(u32),
RpcCall(RpcResponseError),
BorshSerialize,
BorshDeserialize,
SerdeSerialize(String),
SerdeDeserialize(String),
BorshResponseDeserialize(String),
ChannelRecvError,
ChannelSendError,
Utf8Error(Utf8Error),
SerdeJSON(Error),
}Variants
InvalidUrl(String)
WebSocketError(WebSocketError)
Underlying WebSocket error
Timeout
RPC call timeout
ReceiverCtl
Unable to send shutdown message to receiver
HeaderSize
Received message is smaller than the minimum header size
NoDataInSuccessResponse
RPC call succeeded but no data was received in success response
NoDataInErrorResponse
RPC call failed but no data was received in error response
ErrorDeserializingResponseData
Unable to deserialize response data
StatusCode(u32)
Response produced an unknown status code
RpcCall(RpcResponseError)
RPC call executed successfully but produced an error response
BorshSerialize
Unable to serialize borsh data
BorshDeserialize
Unable to deserialize borsh data
SerdeSerialize(String)
Unable to serialize serde data
SerdeDeserialize(String)
Unable to deserialize serde data
BorshResponseDeserialize(String)
RPC call succeeded, but error occurred deserializing borsh response
ChannelRecvError
ChannelSendError
Utf8Error(Utf8Error)
SerdeJSON(Error)
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl Error for Error
impl Error for Error
sourcefn custom<T: Display>(msg: T) -> Error
fn custom<T: Display>(msg: T) -> Error
Raised when there is general error when deserializing a type. Read more
sourcefn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize receives a type different from what it was
expecting. Read moresourcefn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize receives a value of the right type but that
is wrong for some other reason. Read moresourcefn invalid_length(len: usize, exp: &dyn Expected) -> Self
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
Raised when deserializing a sequence or map and the input data contains
too many or too few elements. Read more
sourcefn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize enum type received a variant with an
unrecognized name. Read moresourcefn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize struct type received a field with an
unrecognized name. Read moresourcefn missing_field(field: &'static str) -> Self
fn missing_field(field: &'static str) -> Self
Raised when a
Deserialize struct type expected to receive a required
field with a particular name but that field was not present in the
input. Read moresourcefn duplicate_field(field: &'static str) -> Self
fn duplicate_field(field: &'static str) -> Self
Raised when a
Deserialize struct type received more than one of the
same field. Read moresourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(source: WebSocketError) -> Self
fn from(source: WebSocketError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Any for Twhere
T: Any,
impl<T> Any for Twhere
T: Any,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more