Enum sc2::ErrorKind[]

pub enum ErrorKind {
    Msg(String),
    Io(Error),
    Ctrlc(Error),
    FutureCanceled(Canceled),
    UrlParse(ParseError),
    Protobuf(ProtobufError),
    Timer(TimerError),
    Tungstenite(Error),
    ExeNotSpecified,
    ExeDoesNotExist(PathBuf),
    AutoDetectFailed(String),
    InvalidMapPath(String),
    MissingRequirement(String),
    InvalidMatch(String),
    ClientOpenFailed(String),
    ClientSendFailed(String),
    ClientRecvFailed(String),
    ClientCloseFailed(String),
    GameErrors(Vec<String>),
    EventAckCanceled(String),
    InvalidProtobuf(String),
    // some variants omitted
}

The kind of an error.

Variants

A convenient variant for String.

Link io errors.

Link to Ctrl-C errors.

Link to futures.

Link to url parse errors.

Link to protobuf errors.

Link to timer errors.

Link to tungstenite errors.

Executable was not supplied to the coordinator.

Executable supplied to the coordinator does not exist.

Auto-detecting the SC2 installation was unsuccessful.

An invalid map path was supplied to the library.

A required field was not provided to a builder.

Often, a builder will have no suitable default for a value. These fields require the user to supply a value. When the builder is finalized, it will check these values and if it is missing a requirement, you should expect this error.

Match settings are invalid.

Client failed to open connection to the game instance.

Client failed to send a message to the game instance.

Client failed to receive a message from the game instance.

Client failed to initiate close handshake.

Errors received from game instance.

EventAck receiver was dropped or closed.

This should not happen in sc2-rs, but any external libraries with more flexible event subscribers may encounter this problem, and this error will allow them the freedom to deal with it in their own way.

Invalid protobuf data from game instance.

Methods

impl ErrorKind

A string describing the error kind.

Trait Implementations

impl From<ErrorKind> for Error

Performs the conversion.

impl Debug for ErrorKind

Formats the value using the given formatter. Read more

impl Display for ErrorKind

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.

impl From<Error> for ErrorKind

Performs the conversion.

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind