pub struct UserReader<'a> {
pub process: &'a Process,
pub state: &'a mut State,
pub osu_type: OsuType,
}Fields§
§process: &'a Process§state: &'a mut State§osu_type: OsuTypeImplementations§
Source§impl<'a> UserReader<'a>
impl<'a> UserReader<'a>
pub fn new(p: &'a Process, state: &'a mut State, osu_type: OsuType) -> Self
pub fn get_user_info(&mut self) -> Result<UserInfo>
pub fn get_user_id(&mut self) -> Result<i32>
pub fn get_user_bancho_status(&mut self) -> Result<i32>
pub fn get_user_country_code(&mut self) -> Result<i32>
pub fn get_user_username(&mut self) -> Result<String>
pub fn get_user_pp(&mut self) -> Result<i32>
pub fn get_user_rankedscore(&mut self) -> Result<i64>
pub fn get_user_level(&mut self) -> Result<f32>
pub fn get_user_playcount(&mut self) -> Result<i32>
pub fn get_user_rank(&mut self) -> Result<i32>
pub fn get_user_playmode(&mut self) -> Result<i32>
pub fn get_user_accuracy(&mut self) -> Result<f64>
Auto Trait Implementations§
impl<'a> Freeze for UserReader<'a>
impl<'a> RefUnwindSafe for UserReader<'a>
impl<'a> Send for UserReader<'a>
impl<'a> Sync for UserReader<'a>
impl<'a> Unpin for UserReader<'a>
impl<'a> !UnwindSafe for UserReader<'a>
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