pub struct NodeCapacityDto {
pub cpu_cores: u32,
pub ram_mib: u64,
pub disk_mib: u64,
pub geo: Option<String>,
}Expand description
Per-node capacity advertised when registering for edge-cache eligibility.
Mirrors zlayer_overlay::edge_cache::NodeCapacity 1:1 over the wire.
Fields§
§cpu_cores: u32Number of CPU cores the node is willing to dedicate to cache work.
ram_mib: u64Resident memory (MiB) the node will allow the cache to occupy.
disk_mib: u64On-disk cache budget (MiB).
geo: Option<String>Optional geo / region label (e.g. "us-east-1") used by future
placement decisions. None means “no geo preference declared”.
Trait Implementations§
Source§impl Clone for NodeCapacityDto
impl Clone for NodeCapacityDto
Source§fn clone(&self) -> NodeCapacityDto
fn clone(&self) -> NodeCapacityDto
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 ComposeSchema for NodeCapacityDto
impl ComposeSchema for NodeCapacityDto
Source§impl Debug for NodeCapacityDto
impl Debug for NodeCapacityDto
Source§impl<'de> Deserialize<'de> for NodeCapacityDto
impl<'de> Deserialize<'de> for NodeCapacityDto
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 Serialize for NodeCapacityDto
impl Serialize for NodeCapacityDto
Auto Trait Implementations§
impl Freeze for NodeCapacityDto
impl RefUnwindSafe for NodeCapacityDto
impl Send for NodeCapacityDto
impl Sync for NodeCapacityDto
impl Unpin for NodeCapacityDto
impl UnsafeUnpin for NodeCapacityDto
impl UnwindSafe for NodeCapacityDto
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