Struct k8s_openapi::api::resource::v1alpha3::ResourcePool
source · pub struct ResourcePool {
pub generation: i64,
pub name: String,
pub resource_slice_count: i64,
}
Expand description
ResourcePool describes the pool that ResourceSlices belong to.
Fields§
§generation: i64
Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted.
Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state.
name: String
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required.
It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable.
resource_slice_count: i64
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero.
Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool.
Trait Implementations§
source§impl Clone for ResourcePool
impl Clone for ResourcePool
source§fn clone(&self) -> ResourcePool
fn clone(&self) -> ResourcePool
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourcePool
impl Debug for ResourcePool
source§impl DeepMerge for ResourcePool
impl DeepMerge for ResourcePool
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for ResourcePool
impl Default for ResourcePool
source§fn default() -> ResourcePool
fn default() -> ResourcePool
source§impl<'de> Deserialize<'de> for ResourcePool
impl<'de> Deserialize<'de> for ResourcePool
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>,
source§impl PartialEq for ResourcePool
impl PartialEq for ResourcePool
source§impl Serialize for ResourcePool
impl Serialize for ResourcePool
impl StructuralPartialEq for ResourcePool
Auto Trait Implementations§
impl Freeze for ResourcePool
impl RefUnwindSafe for ResourcePool
impl Send for ResourcePool
impl Sync for ResourcePool
impl Unpin for ResourcePool
impl UnwindSafe for ResourcePool
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)