pub enum TranslationError {
Transmission(WriteFault<Message>),
Reception(ConsumeServerMessageError),
CreateClient(CreateClientError),
Wait(WaitFault),
NoSupply(WithdrawnSupplyFault),
NoDemand(ProduceFailure<WithdrawnDemandFault>),
Serialize(Error),
Read(ReadFault<Message>),
ProcessResponse(ProcessResponseError),
InvalidState(State),
}
Expand description
An error during translation.
Variants§
Transmission(WriteFault<Message>)
Failure while transmitting a client message.
Reception(ConsumeServerMessageError)
Failure while receiving a server message.
CreateClient(CreateClientError)
Failure while creating client.
Wait(WaitFault)
Failure while waiting for process.
NoSupply(WithdrawnSupplyFault)
Attempted to consume on channel with no supply.
NoDemand(ProduceFailure<WithdrawnDemandFault>)
Attempted to produce on channel with dropped Consumer
.
Serialize(Error)
An error serializing a message.
Read(ReadFault<Message>)
An error reading the message.
ProcessResponse(ProcessResponseError)
A JSON-RPC error.
InvalidState(State)
An invalid state.
Trait Implementations§
Source§impl Debug for TranslationError
impl Debug for TranslationError
Source§impl Display for TranslationError
impl Display for TranslationError
Source§impl Error for TranslationError
impl Error for TranslationError
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 TranslationError
impl From<Error> for TranslationError
Source§impl From<ProduceFailure<WithdrawnDemandFault>> for TranslationError
impl From<ProduceFailure<WithdrawnDemandFault>> for TranslationError
Source§fn from(source: ProduceFailure<WithdrawnDemandFault>) -> Self
fn from(source: ProduceFailure<WithdrawnDemandFault>) -> Self
Converts to this type from the input type.
Source§impl From<ReadFault<Message>> for TranslationError
impl From<ReadFault<Message>> for TranslationError
Source§impl From<WaitFault> for TranslationError
impl From<WaitFault> for TranslationError
Source§impl From<WithdrawnSupplyFault> for TranslationError
impl From<WithdrawnSupplyFault> for TranslationError
Source§fn from(source: WithdrawnSupplyFault) -> Self
fn from(source: WithdrawnSupplyFault) -> Self
Converts to this type from the input type.
Source§impl From<WriteFault<Message>> for TranslationError
impl From<WriteFault<Message>> for TranslationError
Source§fn from(source: WriteFault<Message>) -> Self
fn from(source: WriteFault<Message>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TranslationError
impl !RefUnwindSafe for TranslationError
impl Send for TranslationError
impl Sync for TranslationError
impl Unpin for TranslationError
impl !UnwindSafe for TranslationError
Blanket Implementations§
Source§impl<P, C> AssembleInto<C> for Pwhere
C: AssembleFrom<P>,
impl<P, C> AssembleInto<C> for Pwhere
C: AssembleFrom<P>,
Source§fn assemble_into(
parts: &mut Vec<P>,
) -> Result<C, AssembleFailure<<P as AssembleInto<C>>::Error>>
fn assemble_into( parts: &mut Vec<P>, ) -> Result<C, AssembleFailure<<P as AssembleInto<C>>::Error>>
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<P, C> DisassembleInto<P> for Cwhere
P: DisassembleFrom<C>,
impl<P, C> DisassembleInto<P> for Cwhere
P: DisassembleFrom<C>,
Source§type Error = <P as DisassembleFrom<C>>::Error
type Error = <P as DisassembleFrom<C>>::Error
Describes an error that prevents disassembly.
Source§fn disassemble_into(self) -> Result<Vec<P>, <C as DisassembleInto<P>>::Error>
fn disassemble_into(self) -> Result<Vec<P>, <C as DisassembleInto<P>>::Error>
Disassembles
self
into a sequence of parts. Read more