pub struct SyncService { /* private fields */ }Expand description
Synchronizes team standards and supports hot-reload
Implementations§
Source§impl SyncService
impl SyncService
Sourcepub async fn register_change_callback(
&self,
callback: ChangeCallback,
) -> Result<()>
pub async fn register_change_callback( &self, callback: ChangeCallback, ) -> Result<()>
Register a callback for configuration changes
Sourcepub async fn register_team_members(
&self,
team_id: &str,
member_ids: Vec<String>,
) -> Result<()>
pub async fn register_team_members( &self, team_id: &str, member_ids: Vec<String>, ) -> Result<()>
Register team members for notifications
Sourcepub async fn sync_standards(&self, team_id: &str) -> Result<()>
pub async fn sync_standards(&self, team_id: &str) -> Result<()>
Synchronize standards for a team
Sourcepub async fn watch_for_changes(&self, team_id: &str) -> Result<()>
pub async fn watch_for_changes(&self, team_id: &str) -> Result<()>
Watch for configuration changes within 5 seconds
Sourcepub async fn notify_members(&self, team_id: &str, message: &str) -> Result<()>
pub async fn notify_members(&self, team_id: &str, message: &str) -> Result<()>
Notify all team members of changes
Sourcepub async fn get_notification_history(
&self,
team_id: &str,
) -> Result<Vec<NotificationRecord>>
pub async fn get_notification_history( &self, team_id: &str, ) -> Result<Vec<NotificationRecord>>
Get notification history for a team
Sourcepub async fn get_last_modified(
&self,
team_id: &str,
) -> Result<Option<SystemTime>>
pub async fn get_last_modified( &self, team_id: &str, ) -> Result<Option<SystemTime>>
Get last modified time for a team’s standards
Trait Implementations§
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