Enum medea_jason::platform::transport::TransportError
source · pub enum TransportError {
CreateSocket(Error),
InitSocket,
SerializeClientMessage(JsonParseError),
ParseServerMessage(JsonParseError),
MessageNotString,
SendMessage(Error),
ClosedSocket,
}
Expand description
Errors that may occur when working with a RpcTransport
.
Variants§
CreateSocket(Error)
Error encountered when trying to establish connection.
InitSocket
Connection was closed before becoming active.
SerializeClientMessage(JsonParseError)
Occurs when ClientMsg
cannot be serialized.
ParseServerMessage(JsonParseError)
Occurs when ServerMsg
cannot be parsed.
MessageNotString
Occurs if the parsed message is not string.
SendMessage(Error)
Occurs when a message cannot be send to server.
ClosedSocket
Occurs when message is sent to a closed socket.
Trait Implementations§
source§impl Caused for TransportError
impl Caused for TransportError
source§impl Clone for TransportError
impl Clone for TransportError
source§fn clone(&self) -> TransportError
fn clone(&self) -> TransportError
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 TransportError
impl Debug for TransportError
source§impl Display for TransportError
impl Display for TransportError
source§impl From<TransportError> for RpcClientError
impl From<TransportError> for RpcClientError
source§fn from(original: TransportError) -> RpcClientError
fn from(original: TransportError) -> RpcClientError
Converts to this type from the input type.
source§impl PartialEq<TransportError> for TransportError
impl PartialEq<TransportError> for TransportError
source§fn eq(&self, other: &TransportError) -> bool
fn eq(&self, other: &TransportError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TransportError
Auto Trait Implementations§
impl !RefUnwindSafe for TransportError
impl !Send for TransportError
impl !Sync for TransportError
impl Unpin for TransportError
impl !UnwindSafe for TransportError
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