pub struct DockerWorkerConfig {
pub image: String,
pub worker_id: String,
pub supported_tasks: Vec<String>,
pub env: HashMap<String, String>,
pub volumes: Vec<String>,
pub network: Option<String>,
pub memory_limit: Option<String>,
pub cpu_limit: Option<String>,
}Expand description
Configuration for a Docker container worker.
Fields§
§image: String§worker_id: String§supported_tasks: Vec<String>§env: HashMap<String, String>§volumes: Vec<String>§network: Option<String>§memory_limit: Option<String>§cpu_limit: Option<String>Auto Trait Implementations§
impl Freeze for DockerWorkerConfig
impl RefUnwindSafe for DockerWorkerConfig
impl Send for DockerWorkerConfig
impl Sync for DockerWorkerConfig
impl Unpin for DockerWorkerConfig
impl UnsafeUnpin for DockerWorkerConfig
impl UnwindSafe for DockerWorkerConfig
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