pub struct GitHubManager { /* private fields */ }Expand description
GitHub Manager - Central coordinator for all GitHub operations
Implementations§
Source§impl GitHubManager
impl GitHubManager
Sourcepub fn new(config: GitHubConfig) -> Result<Self>
pub fn new(config: GitHubConfig) -> Result<Self>
Create a new GitHub manager
Sourcepub async fn initialize(&self) -> Result<()>
pub async fn initialize(&self) -> Result<()>
Initialize the GitHub client
Sourcepub async fn get_client(&self) -> Result<Arc<Octocrab>>
pub async fn get_client(&self) -> Result<Arc<Octocrab>>
Get the GitHub client
Sourcepub async fn get_config(&self) -> GitHubConfig
pub async fn get_config(&self) -> GitHubConfig
Get current configuration
Sourcepub async fn update_config(&self, config: GitHubConfig) -> Result<()>
pub async fn update_config(&self, config: GitHubConfig) -> Result<()>
Update configuration
Sourcepub async fn get_rate_limit(&self) -> Option<RateLimit>
pub async fn get_rate_limit(&self) -> Option<RateLimit>
Get rate limit information
Sourcepub async fn update_rate_limit(&self, rate_limit: RateLimit)
pub async fn update_rate_limit(&self, rate_limit: RateLimit)
Update rate limit information
Sourcepub async fn is_rate_limited(&self) -> bool
pub async fn is_rate_limited(&self) -> bool
Check if rate limited
Sourcepub async fn wait_for_rate_limit_reset(&self) -> Result<()>
pub async fn wait_for_rate_limit_reset(&self) -> Result<()>
Wait for rate limit reset
Sourcepub async fn with_retry<F, T>(&self, operation: F) -> Result<T>
pub async fn with_retry<F, T>(&self, operation: F) -> Result<T>
Perform operation with retry logic
Sourcepub async fn get_repository(&self) -> Result<String>
pub async fn get_repository(&self) -> Result<String>
Get repository information
Sourcepub async fn health_check(&self) -> Result<()>
pub async fn health_check(&self) -> Result<()>
Health check
Auto Trait Implementations§
impl Freeze for GitHubManager
impl !RefUnwindSafe for GitHubManager
impl Send for GitHubManager
impl Sync for GitHubManager
impl Unpin for GitHubManager
impl !UnwindSafe for GitHubManager
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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