pub struct WorkerPool {
pub pid: Option<i32>,
pub worker_pool_id: Option<String>,
pub start_at: Option<String>,
pub heartbeat_at: Option<String>,
pub concurrency: Option<i32>,
pub host: Option<String>,
}Expand description
WorkerPool : the worker pool of job service
Fields§
§pid: Option<i32>the process id of jobservice
worker_pool_id: Option<String>the id of the worker pool
start_at: Option<String>The start time of the work pool
heartbeat_at: Option<String>The heartbeat time of the work pool
concurrency: Option<i32>The concurrency of the work pool
host: Option<String>The host of the work pool
Implementations§
Source§impl WorkerPool
impl WorkerPool
Sourcepub fn new() -> WorkerPool
pub fn new() -> WorkerPool
the worker pool of job service
Trait Implementations§
Source§impl Clone for WorkerPool
impl Clone for WorkerPool
Source§fn clone(&self) -> WorkerPool
fn clone(&self) -> WorkerPool
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 WorkerPool
impl Debug for WorkerPool
Source§impl Default for WorkerPool
impl Default for WorkerPool
Source§fn default() -> WorkerPool
fn default() -> WorkerPool
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkerPool
impl<'de> Deserialize<'de> for WorkerPool
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
Source§impl PartialEq for WorkerPool
impl PartialEq for WorkerPool
Source§impl Serialize for WorkerPool
impl Serialize for WorkerPool
impl StructuralPartialEq for WorkerPool
Auto Trait Implementations§
impl Freeze for WorkerPool
impl RefUnwindSafe for WorkerPool
impl Send for WorkerPool
impl Sync for WorkerPool
impl Unpin for WorkerPool
impl UnwindSafe for WorkerPool
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