Struct octocat_rs::github::client::Client
source · pub struct Client<T>where
T: Debug + EventHandler<GitHubClient = Client<T>> + Send + Sync,{ /* private fields */ }
Expand description
Where the magic happens.
Implementations§
Trait Implementations§
source§impl Default for Client<DefaultEventHandler>
impl Default for Client<DefaultEventHandler>
source§impl<T> GitHubClient for Client<T>where
T: Debug + EventHandler<GitHubClient = Client<T>> + Send + Sync,
impl<T> GitHubClient for Client<T>where T: Debug + EventHandler<GitHubClient = Client<T>> + Send + Sync,
type HttpClient = HttpClient
type EventHandler = T
fn event_handler(&self) -> &T
source§fn payload_size(&self) -> u64
fn payload_size(&self) -> u64
Helper function to set the maximum payload size. Default is 8 MiB.
source§impl<C> Requester for Client<C>where
C: Send + Sync + Debug + EventHandler<GitHubClient = Client<C>>,
impl<C> Requester for Client<C>where C: Send + Sync + Debug + EventHandler<GitHubClient = Client<C>>,
fn raw_req<'life0, 'life1, 'async_trait, T, V>( &'life0 self, url: EndPoints, query: Option<&'life1 T>, body: Option<V> ) -> Pin<Box<dyn Future<Output = Result<String, GithubRestError>> + Send + 'async_trait>>where T: Serialize + ?Sized + Send + Sync + 'async_trait, V: Into<Self::Body> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
fn req<'life0, 'life1, 'async_trait, T, V, A>( &'life0 self, url: EndPoints, query: Option<&'life1 T>, body: Option<V> ) -> Pin<Box<dyn Future<Output = Result<A, GithubRestError>> + Send + 'async_trait>>where T: Serialize + ?Sized + Send + Sync + 'async_trait, V: Into<Self::Body> + Send + 'async_trait, A: 'async_trait + DeserializeOwned, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
type Body = Body
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Client<T>
impl<T> Send for Client<T>
impl<T> Sync for Client<T>
impl<T> Unpin for Client<T>where T: Unpin,
impl<T> !UnwindSafe for Client<T>
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