pub struct AsyncTaskConfig {
pub workers: usize,
}Fields§
§workers: usize工作线程数(默认 4)
Trait Implementations§
Source§impl Clone for AsyncTaskConfig
impl Clone for AsyncTaskConfig
Source§fn clone(&self) -> AsyncTaskConfig
fn clone(&self) -> AsyncTaskConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AsyncTaskConfig
impl Debug for AsyncTaskConfig
Source§impl Default for AsyncTaskConfig
impl Default for AsyncTaskConfig
Source§fn default() -> AsyncTaskConfig
fn default() -> AsyncTaskConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AsyncTaskConfig
impl<'de> Deserialize<'de> for AsyncTaskConfig
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 AsyncTaskConfig
impl RefUnwindSafe for AsyncTaskConfig
impl Send for AsyncTaskConfig
impl Sync for AsyncTaskConfig
impl Unpin for AsyncTaskConfig
impl UnsafeUnpin for AsyncTaskConfig
impl UnwindSafe for AsyncTaskConfig
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