pub struct WorkerProfile {
pub api_addr: SocketAddr,
pub os: String,
pub arch: String,
pub labels: HashMap<String, String>,
pub cpu_total: u32,
pub memory_total_bytes: u64,
}Expand description
Worker profile — published to the cluster directory on registration.
Fields§
§api_addr: SocketAddrWorker’s externally-reachable HTTP API address (host:port).
os: StringOperating system (linux / windows / darwin).
arch: StringCPU architecture (x86_64 / aarch64).
labels: HashMap<String, String>Free-form labels (region, tier, hardware class, etc.).
cpu_total: u32Total CPU cores available.
memory_total_bytes: u64Total memory in bytes.
Trait Implementations§
Source§impl Clone for WorkerProfile
impl Clone for WorkerProfile
Source§fn clone(&self) -> WorkerProfile
fn clone(&self) -> WorkerProfile
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 WorkerProfile
impl Debug for WorkerProfile
Source§impl<'de> Deserialize<'de> for WorkerProfile
impl<'de> Deserialize<'de> for WorkerProfile
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 WorkerProfile
impl RefUnwindSafe for WorkerProfile
impl Send for WorkerProfile
impl Sync for WorkerProfile
impl Unpin for WorkerProfile
impl UnsafeUnpin for WorkerProfile
impl UnwindSafe for WorkerProfile
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