pub struct RBInfo {}
Fields§
§board_id: u8
§sub_board: u8
§lol: u8
§lol_stable: u8
§trig_rate: u16
§fw_version: String
§fw_hash: String
§uptime: u32
§sd_usage: u8
§input_mode: String
§rat_num: u8
§rat_pos: u8
§rb_pos: u8
Implementations§
Source§impl RBInfo
impl RBInfo
pub fn new() -> Self
pub fn read_all_info() -> Result<RBInfo, RBError>
pub fn read_board_id() -> Result<u8, RBError>
pub fn read_sub_board() -> Result<u8, RBError>
pub fn read_lol() -> Result<u8, RBError>
pub fn read_lol_stable() -> Result<u8, RBError>
pub fn read_trig_rate() -> Result<u16, RBError>
pub fn read_fw_version() -> Result<String, RBError>
pub fn read_fw_hash() -> Result<String, RBError>
pub fn read_uptime() -> u32
pub fn read_sd_usage() -> u8
pub fn read_input_mode() -> Result<String, RBError>
pub fn read_rat_num() -> Result<u8, RBError>
pub fn read_rat_pos() -> Result<u8, RBError>
pub fn read_rb_pos() -> Result<u8, RBError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RBInfo
impl<'de> Deserialize<'de> for RBInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RBInfo
impl RefUnwindSafe for RBInfo
impl Send for RBInfo
impl Sync for RBInfo
impl Unpin for RBInfo
impl UnwindSafe for RBInfo
Blanket Implementations§
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more