rlbot 0.5.0

RLBot bindings for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::ffi::RLBotCoreStatus;
use std::{error::Error, fmt};

/// An error code from the RLBot interface.
#[derive(Debug)]
pub struct RLBotError {
    pub status: RLBotCoreStatus,
}

impl Error for RLBotError {}

impl fmt::Display for RLBotError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "RLBotError({:?})", self.status)
    }
}