Enum dfhack_remote::DFHackError
source · [−]pub enum DFHackError {
CommunicationFailure(Error),
BadMagicFailure(String),
BadVersionFailure(i32),
ProtobufError(ProtobufError),
UnknownReplyCode(i16),
RpcError(),
}Expand description
Error type emitted by DFHack API calls
Variants
CommunicationFailure(Error)
A low level connexion error
This can mean that the address is wrong, that Dwarf Fortress crashed, or a library bug occured.
BadMagicFailure(String)
Failure of the handshake with DFHack
This can mean that the software is not DFHack
BadVersionFailure(i32)
Bad version during the handshake with DFHack
This can mean that the DFHack protocol was updated and is not compatible with the version of this library
ProtobufError(ProtobufError)
Protobuf serialization or deserialization error
UnknownReplyCode(i16)
Unknown reply code during the exchange
RpcError()
DFHack RPC Error
Trait Implementations
sourceimpl Debug for DFHackError
impl Debug for DFHackError
sourceimpl Display for DFHackError
impl Display for DFHackError
sourceimpl From<Error> for DFHackError
impl From<Error> for DFHackError
sourceimpl From<ProtobufError> for DFHackError
impl From<ProtobufError> for DFHackError
sourcefn from(err: ProtobufError) -> Self
fn from(err: ProtobufError) -> Self
Converts to this type from the input type.
sourceimpl From<TryFromPrimitiveError<RpcReplyCode>> for DFHackError
impl From<TryFromPrimitiveError<RpcReplyCode>> for DFHackError
sourcefn from(err: TryFromPrimitiveError<RpcReplyCode>) -> Self
fn from(err: TryFromPrimitiveError<RpcReplyCode>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for DFHackError
impl Send for DFHackError
impl Sync for DFHackError
impl Unpin for DFHackError
impl !UnwindSafe for DFHackError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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