pub struct SpawnRequest {
pub drone_id: DroneId,
pub max_idle_secs: Duration,
pub backend_id: BackendId,
pub metadata: HashMap<String, String>,
pub executable: DockerExecutableConfig,
}
Fields§
§drone_id: DroneId
§max_idle_secs: Duration
The timeout after which the drone is shut down if no connections are made.
backend_id: BackendId
The name of the backend. This forms part of the hostname used to connect to the drone.
metadata: HashMap<String, String>
Metadata for the spawn. Typically added to log messages for debugging and observability.
executable: DockerExecutableConfig
configuration of executor (ie. image to run, executor being used etc)
Implementations§
Source§impl SpawnRequest
impl SpawnRequest
pub fn subscribe_subject(drone_id: &DroneId) -> SubscribeSubject<Self>
Trait Implementations§
Source§impl Clone for SpawnRequest
impl Clone for SpawnRequest
Source§fn clone(&self) -> SpawnRequest
fn clone(&self) -> SpawnRequest
Returns a copy 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 SpawnRequest
impl Debug for SpawnRequest
Source§impl<'de> Deserialize<'de> for SpawnRequest
impl<'de> Deserialize<'de> for SpawnRequest
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 SpawnRequest
impl PartialEq for SpawnRequest
Source§impl Serialize for SpawnRequest
impl Serialize for SpawnRequest
Source§impl TypedMessage for SpawnRequest
impl TypedMessage for SpawnRequest
impl StructuralPartialEq for SpawnRequest
Auto Trait Implementations§
impl Freeze for SpawnRequest
impl RefUnwindSafe for SpawnRequest
impl Send for SpawnRequest
impl Sync for SpawnRequest
impl Unpin for SpawnRequest
impl UnwindSafe for SpawnRequest
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