Enum workflow_rpc::error::ServerError
source · pub enum ServerError {
}
Expand description
ServerError
enum is used by both Server and Client and
represents errors returned by server-side handlers. This enum
is also serialized and transported to the client when using
the Borsh
protocol (as such, this mostly contains pure enum
values).
Variants§
Close
Timeout
NoData
NotFound
PoisonError
NonBorshRequest
NonSerdeRequest
ReqSerialize
ReqDeserialize
RespSerialize
NotificationDeserialize(String)
RespDeserialize(String)
Data(Vec<u8>)
Text(String)
WebSocketError(String)
Underlying WebSocket error
ReceiveChannelRx
ReceiveChannelTx
Trait Implementations§
source§impl BorshDeserialize for ServerErrorwhere
String: BorshDeserialize,
Vec<u8>: BorshDeserialize,
impl BorshDeserialize for ServerErrorwhere
String: BorshDeserialize,
Vec<u8>: BorshDeserialize,
source§impl BorshSerialize for ServerErrorwhere
String: BorshSerialize,
Vec<u8>: BorshSerialize,
impl BorshSerialize for ServerErrorwhere
String: BorshSerialize,
Vec<u8>: BorshSerialize,
source§impl Clone for ServerError
impl Clone for ServerError
source§fn clone(&self) -> ServerError
fn clone(&self) -> ServerError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ServerError
impl Debug for ServerError
source§impl<'de> Deserialize<'de> for ServerError
impl<'de> Deserialize<'de> for ServerError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ServerError
impl Display for ServerError
source§impl Error for ServerError
impl Error for ServerError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<&str> for ServerError
impl From<&str> for ServerError
source§impl From<Error> for ServerError
impl From<Error> for ServerError
source§impl From<Error> for ServerError
impl From<Error> for ServerError
source§impl<T> From<PoisonError<T>> for ServerError
impl<T> From<PoisonError<T>> for ServerError
source§fn from(_error: PoisonError<T>) -> ServerError
fn from(_error: PoisonError<T>) -> ServerError
Converts to this type from the input type.
source§impl From<RecvError> for ServerError
impl From<RecvError> for ServerError
source§fn from(_: RecvError) -> ServerError
fn from(_: RecvError) -> ServerError
Converts to this type from the input type.
source§impl<T> From<SendError<T>> for ServerError
impl<T> From<SendError<T>> for ServerError
source§fn from(_error: SendError<T>) -> ServerError
fn from(_error: SendError<T>) -> ServerError
Converts to this type from the input type.
source§impl From<ServerError> for Error
impl From<ServerError> for Error
source§fn from(err: ServerError) -> Self
fn from(err: ServerError) -> Self
Converts to this type from the input type.
source§impl From<ServerError> for SerdeJsonServerError
impl From<ServerError> for SerdeJsonServerError
source§fn from(err: ServerError) -> Self
fn from(err: ServerError) -> Self
Converts to this type from the input type.
source§impl From<String> for ServerError
impl From<String> for ServerError
source§impl<T> From<TrySendError<T>> for ServerError
impl<T> From<TrySendError<T>> for ServerError
source§fn from(_error: TrySendError<T>) -> ServerError
fn from(_error: TrySendError<T>) -> ServerError
Converts to this type from the input type.
source§impl PartialEq<ServerError> for ServerError
impl PartialEq<ServerError> for ServerError
source§fn eq(&self, other: &ServerError) -> bool
fn eq(&self, other: &ServerError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ServerError
impl Serialize for ServerError
impl Eq for ServerError
impl StructuralEq for ServerError
impl StructuralPartialEq for ServerError
Auto Trait Implementations§
impl RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnwindSafe for ServerError
Blanket Implementations§
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.