pub struct SharedData {
pub kv: HashMap<String, Vec<u8>>,
pub completed_async_tasks: Vec<CompletedAsyncTask>,
/* private fields */
}Expand description
Agent間共有データ
Fields§
§kv: HashMap<String, Vec<u8>>key-value ストア
completed_async_tasks: Vec<CompletedAsyncTask>完了した非同期タスク一覧(Meta のみ) payload は AsyncTaskSystem に保持され、ReadPayload Action で取得
Implementations§
Sourcepub fn cleanup_env_entries(&mut self)
pub fn cleanup_env_entries(&mut self)
env:{worker_id}:{tick} 形式の古いエントリをクリーンアップ
kv 内の env:* エントリが max_env_entries を超えた場合、 tick が古いものから削除する。
Sourcepub fn set_max_env_entries(&mut self, max: usize)
pub fn set_max_env_entries(&mut self, max: usize)
env エントリの最大保持数を設定
Trait Implementations§
Auto Trait Implementations§
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