pub struct ServeProcessAllocation {
pub process_id: String,
pub role_id: String,
pub replica_id: String,
pub replica_index: u32,
pub rank: u32,
pub machine_id: String,
pub model_locator: String,
pub runtime_cache_root: String,
pub devices: Vec<u32>,
pub endpoint: EndpointAssignment,
pub ports: BTreeMap<String, EndpointAssignment>,
}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_id: String§role_id: String§replica_id: String§replica_index: u32§rank: u32§machine_id: String§model_locator: String§runtime_cache_root: String§devices: Vec<u32>§endpoint: EndpointAssignment§ports: BTreeMap<String, EndpointAssignment>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
impl Eq for ServeProcessAllocation
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