pub struct ServeProcessAllocation {Show 13 fields
pub process: String,
pub role: String,
pub replica: u32,
pub rank: u32,
pub rank_count: u32,
pub machine: String,
pub devices: Vec<u32>,
pub model_locator: Option<String>,
pub endpoint: Option<EndpointAssignment>,
pub ports: BTreeMap<String, EndpointAssignment>,
pub cache: String,
pub launch: AllocationLaunch,
pub dependencies: Vec<String>,
}Expand description
One concrete process the control plane placed, supplied to RenderServe:
its identity, rank, machine, devices, model locator, and allocated
endpoints and named ports.
Fields§
§process: String§role: String§replica: u32§rank: u32§rank_count: u32§machine: String§devices: Vec<u32>§model_locator: Option<String>§endpoint: Option<EndpointAssignment>§ports: BTreeMap<String, EndpointAssignment>§cache: String§launch: AllocationLaunch§dependencies: Vec<String>Trait Implementations§
Source§impl Clone for ServeProcessAllocation
impl Clone for ServeProcessAllocation
Source§fn clone(&self) -> ServeProcessAllocation
fn clone(&self) -> ServeProcessAllocation
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 ServeProcessAllocation
impl Debug for ServeProcessAllocation
Source§impl<'de> Deserialize<'de> for ServeProcessAllocation
impl<'de> Deserialize<'de> for ServeProcessAllocation
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 JsonSchema for ServeProcessAllocation
impl JsonSchema for ServeProcessAllocation
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ServeProcessAllocation
impl PartialEq for ServeProcessAllocation
Source§impl Serialize for ServeProcessAllocation
impl Serialize for ServeProcessAllocation
impl StructuralPartialEq for ServeProcessAllocation
Auto Trait Implementations§
impl Freeze for ServeProcessAllocation
impl RefUnwindSafe for ServeProcessAllocation
impl Send for ServeProcessAllocation
impl Sync for ServeProcessAllocation
impl Unpin for ServeProcessAllocation
impl UnsafeUnpin for ServeProcessAllocation
impl UnwindSafe for ServeProcessAllocation
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