pub struct EventConfigAdapter { /* private fields */ }Implementations§
Source§impl EventConfigAdapter
impl EventConfigAdapter
Sourcepub fn new(
config_file_accessor: Arc<dyn FileAccessor<Config>>,
subscribe_file_accessor: Arc<dyn FileAccessor<EventSubscribeList>>,
) -> Self
pub fn new( config_file_accessor: Arc<dyn FileAccessor<Config>>, subscribe_file_accessor: Arc<dyn FileAccessor<EventSubscribeList>>, ) -> Self
Constructs a new EventConfigAdapter.
Trait Implementations§
Source§impl EventConfigUseCase for EventConfigAdapter
impl EventConfigUseCase for EventConfigAdapter
fn add_event<'life0, 'async_trait>(
&'life0 self,
event_config: EventConfig,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_event<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventConfig>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove_event<'life0, 'async_trait>(
&'life0 self,
name: String,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl EventSubscribeUseCase for EventConfigAdapter
impl EventSubscribeUseCase for EventConfigAdapter
fn subscribe<'life0, 'async_trait>(
&'life0 self,
chat_id: String,
event_name: String,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_subscribed_event<'life0, 'async_trait>(
&'life0 self,
chat_id: String,
) -> Pin<Box<dyn Future<Output = Result<Vec<EventConfig>, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn unsubscribe<'life0, 'async_trait>(
&'life0 self,
chat_id: String,
event_name: String,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for EventConfigAdapter
impl !RefUnwindSafe for EventConfigAdapter
impl Send for EventConfigAdapter
impl Sync for EventConfigAdapter
impl Unpin for EventConfigAdapter
impl UnsafeUnpin for EventConfigAdapter
impl !UnwindSafe for EventConfigAdapter
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