flo_scene 0.2.0

Entity-messaging system for composing large programs from small programs
Documentation
use serde::*;

///
/// An error that can be generated from a command
///
#[derive(Clone, PartialEq, Eq, Debug)]
#[derive(Serialize, Deserialize)]
pub enum CommandError {
    /// Error generated when an attempt is made to run a command that does not exist
    CommandNotFound(String),

    /// Managed to connect to the owner of the command but it produced an error when trying to send the message
    CommandFailedToRespond(String),

    /// The scene has no scene control program to query
    CannotQueryScene,

    /// The parameter was not in the correct format
    IncorrectParameterFormat,

    /// The response was in the wrong format
    CannotConvertResponse,
}