pub enum DispatchStrategy {
Broadcast,
RoundRobin,
Random,
LoadBalanced,
CapabilityBased,
}Expand description
任务分发策略
Variants§
Trait Implementations§
Source§impl Clone for DispatchStrategy
impl Clone for DispatchStrategy
Source§fn clone(&self) -> DispatchStrategy
fn clone(&self) -> DispatchStrategy
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 DispatchStrategy
impl Debug for DispatchStrategy
Source§impl Default for DispatchStrategy
impl Default for DispatchStrategy
Source§fn default() -> DispatchStrategy
fn default() -> DispatchStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DispatchStrategy
impl<'de> Deserialize<'de> for DispatchStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DispatchStrategy
impl RefUnwindSafe for DispatchStrategy
impl Send for DispatchStrategy
impl Sync for DispatchStrategy
impl Unpin for DispatchStrategy
impl UnsafeUnpin for DispatchStrategy
impl UnwindSafe for DispatchStrategy
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