pub enum WorkerScope {
Minimal,
SelfDetail,
WithTeamSummary,
WithTeamDetail,
Idle,
}Expand description
Worker に渡す情報のスコープ
Manager が Guidance で指定し、ContextResolver がこれに応じて ResolvedContext を生成する。
§スコープレベル
Minimal: 自分の last_output のみ(最小限)SelfDetail: 自分の詳細情報(履歴、失敗数など)WithTeamSummary: 自分 + チームのサマリーWithTeamDetail: 自分 + チームの詳細(フル情報)Idle: 何もしない(Worker は即座に Idle を返す)
Variants§
Minimal
最小: 自分の last_output のみ
SelfDetail
自分の詳細(履歴、失敗数など)
WithTeamSummary
自分 + チームのサマリー(ID + 最新アクションのみ)
WithTeamDetail
自分 + チームの詳細(フル情報)
Idle
何もしない
Trait Implementations§
Source§impl Clone for WorkerScope
impl Clone for WorkerScope
Source§fn clone(&self) -> WorkerScope
fn clone(&self) -> WorkerScope
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 WorkerScope
impl Debug for WorkerScope
Source§impl Default for WorkerScope
impl Default for WorkerScope
Source§fn default() -> WorkerScope
fn default() -> WorkerScope
Returns the “default value” for a type. Read more
Source§impl PartialEq for WorkerScope
impl PartialEq for WorkerScope
impl Eq for WorkerScope
impl StructuralPartialEq for WorkerScope
Auto Trait Implementations§
impl Freeze for WorkerScope
impl RefUnwindSafe for WorkerScope
impl Send for WorkerScope
impl Sync for WorkerScope
impl Unpin for WorkerScope
impl UnwindSafe for WorkerScope
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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