pub struct TestWorkerEntry {
pub id: String,
pub host: String,
pub user: String,
pub port: u16,
pub identity_file: String,
pub total_slots: u32,
pub priority: u32,
pub tags: Vec<String>,
pub enabled: bool,
}Expand description
Single worker entry in test configuration.
Fields§
§id: StringUnique identifier for this worker.
host: StringSSH hostname or IP address.
user: StringSSH username.
port: u16SSH port.
identity_file: StringPath to SSH private key.
total_slots: u32Total CPU slots available on this worker.
priority: u32Priority for worker selection (higher = preferred).
Optional tags for filtering.
enabled: boolWhether this worker is enabled.
Implementations§
Source§impl TestWorkerEntry
impl TestWorkerEntry
Sourcepub fn expanded_identity_file(&self) -> TestConfigResult<PathBuf>
pub fn expanded_identity_file(&self) -> TestConfigResult<PathBuf>
Expand tilde in the identity file path.
Sourcepub fn to_worker_config(&self) -> WorkerConfig
pub fn to_worker_config(&self) -> WorkerConfig
Convert to the standard WorkerConfig type for daemon integration.
Trait Implementations§
Source§impl Clone for TestWorkerEntry
impl Clone for TestWorkerEntry
Source§fn clone(&self) -> TestWorkerEntry
fn clone(&self) -> TestWorkerEntry
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 TestWorkerEntry
impl Debug for TestWorkerEntry
Source§impl<'de> Deserialize<'de> for TestWorkerEntry
impl<'de> Deserialize<'de> for TestWorkerEntry
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 TestWorkerEntry
impl RefUnwindSafe for TestWorkerEntry
impl Send for TestWorkerEntry
impl Sync for TestWorkerEntry
impl Unpin for TestWorkerEntry
impl UnsafeUnpin for TestWorkerEntry
impl UnwindSafe for TestWorkerEntry
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