[−][src]Trait misskey::Client
Abstraction over API clients.
Associated Types
Loading content...Required methods
pub fn request<R>(
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<ApiResult<<R as Request>::Response>, Self::Error>> + Send, Global>> where
R: Request,
[src]
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<ApiResult<<R as Request>::Response>, Self::Error>> + Send, Global>> where
R: Request,
Implementations on Foreign Types
impl<'_, C> Client for &'_ mut C where
C: Client + ?Sized,
[src]
C: Client + ?Sized,
type Error = <C as Client>::Error
pub fn request<R>(
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<ApiResult<<R as Request>::Response>, <&'_ mut C as Client>::Error>> + Send, Global>> where
R: Request,
[src]
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<ApiResult<<R as Request>::Response>, <&'_ mut C as Client>::Error>> + Send, Global>> where
R: Request,
impl<'_, C> Client for &'_ C where
C: Client + ?Sized,
[src]
C: Client + ?Sized,
type Error = <C as Client>::Error
pub fn request<R>(
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<ApiResult<<R as Request>::Response>, <&'_ C as Client>::Error>> + Send, Global>> where
R: Request,
[src]
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<ApiResult<<R as Request>::Response>, <&'_ C as Client>::Error>> + Send, Global>> where
R: Request,
impl<C> Client for Box<C, Global> where
C: Client + ?Sized,
[src]
C: Client + ?Sized,
type Error = <C as Client>::Error
pub fn request<R>(
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<ApiResult<<R as Request>::Response>, <Box<C, Global> as Client>::Error>> + Send, Global>> where
R: Request,
[src]
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<ApiResult<<R as Request>::Response>, <Box<C, Global> as Client>::Error>> + Send, Global>> where
R: Request,
Implementors
impl Client for HttpClient
[src]
type Error = Error
pub fn request<R>(
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<ApiResult<<R as Request>::Response>, Error>> + Send, Global>> where
R: Request,
[src]
&self,
request: R
) -> Pin<Box<dyn Future<Output = Result<ApiResult<<R as Request>::Response>, Error>> + Send, Global>> where
R: Request,