pub trait ApiNoContext<C: Send + Sync> {
// Required methods
fn poll_ready(
&self,
_cx: &mut Context<'_>,
) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>;
fn context(&self) -> &C;
fn bobby_delete<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BobbyDeleteResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn game_post<'life0, 'async_trait>(
&'life0 self,
game_end_dto: GameEndDto,
) -> Pin<Box<dyn Future<Output = Result<GamePostResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn maps_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MapsGetResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn register_post<'life0, 'async_trait>(
&'life0 self,
create_user_dto: CreateUserDto,
) -> Pin<Box<dyn Future<Output = Result<RegisterPostResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn statistics_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<StatisticsGetResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn map_level_get<'life0, 'async_trait>(
&'life0 self,
level: String,
) -> Pin<Box<dyn Future<Output = Result<MapLevelGetResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn statistics_uuid_get<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<StatisticsUuidGetResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn user_uuid_get<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<UserUuidGetResponse, ApiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
API where Context
isn’t passed on every API call
Required Methods§
fn poll_ready( &self, _cx: &mut Context<'_>, ) -> Poll<Result<(), Box<dyn Error + Send + Sync + 'static>>>
fn context(&self) -> &C
Sourcefn bobby_delete<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BobbyDeleteResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn bobby_delete<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BobbyDeleteResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Calls for Booby Drop Tables
Sourcefn game_post<'life0, 'async_trait>(
&'life0 self,
game_end_dto: GameEndDto,
) -> Pin<Box<dyn Future<Output = Result<GamePostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn game_post<'life0, 'async_trait>(
&'life0 self,
game_end_dto: GameEndDto,
) -> Pin<Box<dyn Future<Output = Result<GamePostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Submit game end data
Sourcefn maps_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MapsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn maps_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MapsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch all existing maps.
Sourcefn register_post<'life0, 'async_trait>(
&'life0 self,
create_user_dto: CreateUserDto,
) -> Pin<Box<dyn Future<Output = Result<RegisterPostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_post<'life0, 'async_trait>(
&'life0 self,
create_user_dto: CreateUserDto,
) -> Pin<Box<dyn Future<Output = Result<RegisterPostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates a User in our System.
Sourcefn statistics_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<StatisticsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn statistics_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<StatisticsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch all statistics
Sourcefn map_level_get<'life0, 'async_trait>(
&'life0 self,
level: String,
) -> Pin<Box<dyn Future<Output = Result<MapLevelGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn map_level_get<'life0, 'async_trait>(
&'life0 self,
level: String,
) -> Pin<Box<dyn Future<Output = Result<MapLevelGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch BeatMap of a specific level.
Sourcefn statistics_uuid_get<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<StatisticsUuidGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn statistics_uuid_get<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<StatisticsUuidGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch details for a specific run.
Sourcefn user_uuid_get<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<UserUuidGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn user_uuid_get<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<UserUuidGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets user Details from UUID.
Implementations on Foreign Types§
Source§impl<T: Api<C> + Send + Sync, C: Clone + Send + Sync> ApiNoContext<C> for ContextWrapper<T, C>
impl<T: Api<C> + Send + Sync, C: Clone + Send + Sync> ApiNoContext<C> for ContextWrapper<T, C>
Source§fn bobby_delete<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BobbyDeleteResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn bobby_delete<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BobbyDeleteResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Calls for Booby Drop Tables
Source§fn game_post<'life0, 'async_trait>(
&'life0 self,
game_end_dto: GameEndDto,
) -> Pin<Box<dyn Future<Output = Result<GamePostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn game_post<'life0, 'async_trait>(
&'life0 self,
game_end_dto: GameEndDto,
) -> Pin<Box<dyn Future<Output = Result<GamePostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Submit game end data
Source§fn maps_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MapsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn maps_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<MapsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch all existing maps.
Source§fn register_post<'life0, 'async_trait>(
&'life0 self,
create_user_dto: CreateUserDto,
) -> Pin<Box<dyn Future<Output = Result<RegisterPostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn register_post<'life0, 'async_trait>(
&'life0 self,
create_user_dto: CreateUserDto,
) -> Pin<Box<dyn Future<Output = Result<RegisterPostResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates a User in our System.
Source§fn statistics_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<StatisticsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn statistics_get<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<StatisticsGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch all statistics
Source§fn map_level_get<'life0, 'async_trait>(
&'life0 self,
level: String,
) -> Pin<Box<dyn Future<Output = Result<MapLevelGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn map_level_get<'life0, 'async_trait>(
&'life0 self,
level: String,
) -> Pin<Box<dyn Future<Output = Result<MapLevelGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch BeatMap of a specific level.
Source§fn statistics_uuid_get<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<StatisticsUuidGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn statistics_uuid_get<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<StatisticsUuidGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch details for a specific run.
Source§fn user_uuid_get<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<UserUuidGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn user_uuid_get<'life0, 'async_trait>(
&'life0 self,
uuid: String,
) -> Pin<Box<dyn Future<Output = Result<UserUuidGetResponse, ApiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Gets user Details from UUID.