Skip to main content

ConnectedCalendarStore

Trait ConnectedCalendarStore 

Source
pub trait ConnectedCalendarStore: Send + Sync {
    // Required methods
    fn sync_discovered<'life0, 'async_trait>(
        &'life0 self,
        owner: UserId,
        connection: ExternalConnectionId,
        calendars: Vec<DiscoveredCalendar>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ConnectedCalendar>, ConnectedCalendarStorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn list_for_connection<'life0, 'async_trait>(
        &'life0 self,
        owner: UserId,
        connection: ExternalConnectionId,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<ConnectedCalendar>, ConnectedCalendarStorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_selected<'life0, 'async_trait>(
        &'life0 self,
        id: ConnectedCalendarId,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ConnectedCalendar>, ConnectedCalendarStorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update<'life0, 'async_trait>(
        &'life0 self,
        owner: UserId,
        id: ConnectedCalendarId,
        selected: Option<bool>,
        access_mode: Option<CalendarAccessMode>,
    ) -> Pin<Box<dyn Future<Output = Result<ConnectedCalendar, ConnectedCalendarStorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn share_with_family<'life0, 'async_trait>(
        &'life0 self,
        owner: UserId,
        id: ConnectedCalendarId,
        family_id: FamilyId,
        access: CalendarFamilyAccess,
    ) -> Pin<Box<dyn Future<Output = Result<ConnectedCalendar, ConnectedCalendarStorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unshare_from_family<'life0, 'async_trait>(
        &'life0 self,
        owner: UserId,
        id: ConnectedCalendarId,
    ) -> Pin<Box<dyn Future<Output = Result<ConnectedCalendar, ConnectedCalendarStorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn sync_discovered<'life0, 'async_trait>( &'life0 self, owner: UserId, connection: ExternalConnectionId, calendars: Vec<DiscoveredCalendar>, ) -> Pin<Box<dyn Future<Output = Result<Vec<ConnectedCalendar>, ConnectedCalendarStorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn list_for_connection<'life0, 'async_trait>( &'life0 self, owner: UserId, connection: ExternalConnectionId, ) -> Pin<Box<dyn Future<Output = Result<Vec<ConnectedCalendar>, ConnectedCalendarStorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_selected<'life0, 'async_trait>( &'life0 self, id: ConnectedCalendarId, ) -> Pin<Box<dyn Future<Output = Result<Option<ConnectedCalendar>, ConnectedCalendarStorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolve a selected calendar by its internal EME identifier. Only calendars backed by an active provider connection are returned.

Source

fn update<'life0, 'async_trait>( &'life0 self, owner: UserId, id: ConnectedCalendarId, selected: Option<bool>, access_mode: Option<CalendarAccessMode>, ) -> Pin<Box<dyn Future<Output = Result<ConnectedCalendar, ConnectedCalendarStorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn share_with_family<'life0, 'async_trait>( &'life0 self, owner: UserId, id: ConnectedCalendarId, family_id: FamilyId, access: CalendarFamilyAccess, ) -> Pin<Box<dyn Future<Output = Result<ConnectedCalendar, ConnectedCalendarStorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn unshare_from_family<'life0, 'async_trait>( &'life0 self, owner: UserId, id: ConnectedCalendarId, ) -> Pin<Box<dyn Future<Output = Result<ConnectedCalendar, ConnectedCalendarStorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§