pub struct UpdateNodeStatsRequest {
pub peer_id: PeerIdString,
pub bandwidth_uploaded: Bytes,
pub bandwidth_downloaded: Bytes,
pub chunks_served: u64,
pub storage_used: Bytes,
pub uptime_seconds: u64,
}Expand description
Request to update node statistics.
Fields§
§peer_id: PeerIdStringNode’s peer ID.
bandwidth_uploaded: BytesBandwidth uploaded (bytes).
bandwidth_downloaded: BytesBandwidth downloaded (bytes).
chunks_served: u64Number of chunks served.
storage_used: BytesStorage used (bytes).
uptime_seconds: u64Uptime (seconds).
Trait Implementations§
Source§impl Clone for UpdateNodeStatsRequest
impl Clone for UpdateNodeStatsRequest
Source§fn clone(&self) -> UpdateNodeStatsRequest
fn clone(&self) -> UpdateNodeStatsRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 UpdateNodeStatsRequest
impl Debug for UpdateNodeStatsRequest
Source§impl<'de> Deserialize<'de> for UpdateNodeStatsRequest
impl<'de> Deserialize<'de> for UpdateNodeStatsRequest
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 UpdateNodeStatsRequest
impl RefUnwindSafe for UpdateNodeStatsRequest
impl Send for UpdateNodeStatsRequest
impl Sync for UpdateNodeStatsRequest
impl Unpin for UpdateNodeStatsRequest
impl UnwindSafe for UpdateNodeStatsRequest
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