pub struct NotifyFutureResourceUsageChangesUseCase<R, N>where
R: ResourceUsageRepository,
N: Notifier,{ /* private fields */ }Expand description
未来および進行中のリソース使用状況の変更を監視し、通知するユースケース
このユースケースは以下の変更を検知して通知します:
- 新規作成: 新しいリソース使用予約が追加された
- 更新: 既存の予約内容が変更された
- 削除: 未来の予約がキャンセル/削除された
§スコープ
このユースケースは「未来および進行中」のリソース使用のみを監視対象とします。 予約期間が終了したリソースは自然に監視対象外となり、削除通知は送信されません。
Implementations§
Source§impl<R, N> NotifyFutureResourceUsageChangesUseCase<R, N>where
R: ResourceUsageRepository,
N: Notifier,
impl<R, N> NotifyFutureResourceUsageChangesUseCase<R, N>where
R: ResourceUsageRepository,
N: Notifier,
Sourcepub async fn new(
repository: Arc<R>,
notifier: N,
) -> Result<Self, ApplicationError>
pub async fn new( repository: Arc<R>, notifier: N, ) -> Result<Self, ApplicationError>
Auto Trait Implementations§
impl<R, N> !Freeze for NotifyFutureResourceUsageChangesUseCase<R, N>
impl<R, N> !RefUnwindSafe for NotifyFutureResourceUsageChangesUseCase<R, N>
impl<R, N> Send for NotifyFutureResourceUsageChangesUseCase<R, N>
impl<R, N> Sync for NotifyFutureResourceUsageChangesUseCase<R, N>
impl<R, N> Unpin for NotifyFutureResourceUsageChangesUseCase<R, N>where
N: Unpin,
impl<R, N> !UnwindSafe for NotifyFutureResourceUsageChangesUseCase<R, N>
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