pub trait GitHubClient: Requester + Sized {
    type HttpClient: Requester + Send + Sync;
    type EventHandler: EventHandler + Send + Sync;

    // Required method
    fn event_handler(&self) -> &Self::EventHandler;

    // Provided method
    fn payload_size(&self) -> u64 { ... }
}

Required Associated Types§

Required Methods§

source

fn event_handler(&self) -> &Self::EventHandler

Provided Methods§

source

fn payload_size(&self) -> u64

Helper function to set the maximum payload size. Default is 8 MiB.

Implementors§

source§

impl<T> GitHubClient for Client<T>where T: Debug + EventHandler<GitHubClient = Client<T>> + Send + Sync,