pub struct SyncService { /* private fields */ }Expand description
High-level synchronization service
Implementations§
Source§impl SyncService
impl SyncService
pub fn new() -> Result<Self>
pub async fn new_with_config() -> Result<Self>
Sourcepub async fn initialize(&mut self) -> Result<()>
pub async fn initialize(&mut self) -> Result<()>
Initialize providers from configuration
Sourcepub async fn sync_all(&mut self) -> Result<SyncResult>
pub async fn sync_all(&mut self) -> Result<SyncResult>
Perform complete credential synchronization
Sourcepub async fn force_sync(&mut self) -> Result<SyncResult>
pub async fn force_sync(&mut self) -> Result<SyncResult>
Force synchronization (ignore token change checks)
Sourcepub async fn check_and_sync_if_needed(&mut self) -> Result<()>
pub async fn check_and_sync_if_needed(&mut self) -> Result<()>
Check if sync is needed and perform sync if required
Sourcepub async fn is_sync_needed(&self) -> Result<bool>
pub async fn is_sync_needed(&self) -> Result<bool>
Check if sync is needed (token has changed or secrets are missing)
Auto Trait Implementations§
impl Freeze for SyncService
impl !RefUnwindSafe for SyncService
impl Send for SyncService
impl Sync for SyncService
impl Unpin for SyncService
impl !UnwindSafe for SyncService
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