pub struct FixedScopeStrategy { /* private fields */ }Expand description
固定 Scope 戦略
全ての Worker に同じスコープを適用する最もシンプルな戦略。
デフォルトは WorkerScope::Minimal。
Implementations§
Source§impl FixedScopeStrategy
impl FixedScopeStrategy
Sourcepub fn new(scope: WorkerScope) -> Self
pub fn new(scope: WorkerScope) -> Self
新しい FixedScopeStrategy を作成
Sourcepub fn self_detail() -> Self
pub fn self_detail() -> Self
SelfDetail スコープの戦略を作成
Sourcepub fn with_team_detail() -> Self
pub fn with_team_detail() -> Self
WithTeamDetail スコープの戦略を作成
Trait Implementations§
Source§impl Clone for FixedScopeStrategy
impl Clone for FixedScopeStrategy
Source§fn clone(&self) -> FixedScopeStrategy
fn clone(&self) -> FixedScopeStrategy
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 FixedScopeStrategy
impl Debug for FixedScopeStrategy
Source§impl Default for FixedScopeStrategy
impl Default for FixedScopeStrategy
Source§impl ScopeStrategy for FixedScopeStrategy
impl ScopeStrategy for FixedScopeStrategy
Source§fn determine_scope(
&self,
_context: &TaskContext,
_worker_id: WorkerId,
) -> WorkerScope
fn determine_scope( &self, _context: &TaskContext, _worker_id: WorkerId, ) -> WorkerScope
Worker の Scope を決定 Read more
Auto Trait Implementations§
impl Freeze for FixedScopeStrategy
impl RefUnwindSafe for FixedScopeStrategy
impl Send for FixedScopeStrategy
impl Sync for FixedScopeStrategy
impl Unpin for FixedScopeStrategy
impl UnwindSafe for FixedScopeStrategy
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