pub struct Replica {
pub deployment: String,
pub replica_index: u32,
pub node: Option<String>,
pub gpu_indices: Vec<u32>,
}Expand description
Replica metadata (doc §7.2). Owned by the DeploymentManagerActor;
the Deployment itself doesn’t carry placements.
Fields§
§deployment: String§replica_index: u32§node: Option<String>§gpu_indices: Vec<u32>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Replica
impl<'de> Deserialize<'de> for Replica
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 Replica
impl RefUnwindSafe for Replica
impl Send for Replica
impl Sync for Replica
impl Unpin for Replica
impl UnsafeUnpin for Replica
impl UnwindSafe for Replica
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