pub struct WorkerStateDelta {
pub cache_updates: Vec<CacheUpdate>,
pub shared_updates: Vec<SharedUpdate>,
pub async_tasks: Vec<AsyncTaskRequest>,
}Expand description
Worker の状態変更リクエスト(Runtime が Phase 6 でマージ)
Worker は &self で実行されるため、直接 State を変更できない。
代わりに変更リクエストを WorkResult に含めて返し、
Runtime が Phase 6 で一括適用する。
Fields§
§cache_updates: Vec<CacheUpdate>ローカルキャッシュ更新リクエスト
SharedData 更新リクエスト
async_tasks: Vec<AsyncTaskRequest>非同期タスク発行リクエスト
Implementations§
Trait Implementations§
Source§impl Clone for WorkerStateDelta
impl Clone for WorkerStateDelta
Source§fn clone(&self) -> WorkerStateDelta
fn clone(&self) -> WorkerStateDelta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerStateDelta
impl Debug for WorkerStateDelta
Source§impl Default for WorkerStateDelta
impl Default for WorkerStateDelta
Source§fn default() -> WorkerStateDelta
fn default() -> WorkerStateDelta
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkerStateDelta
impl RefUnwindSafe for WorkerStateDelta
impl Send for WorkerStateDelta
impl Sync for WorkerStateDelta
impl Unpin for WorkerStateDelta
impl UnwindSafe for WorkerStateDelta
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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