pub struct BandwidthRequest {
pub requested_values_bitmap: BandwidthRequestBitmap,
pub to_shard: u16,
}
Expand description
BandwidthRequest
describes the size of receipts that a shard would like to send to another shard.
When a shard wants to send a lot of receipts to another shard, it needs to create a request and wait
for a bandwidth grant from the bandwidth scheduler.
JSON schema
{
"description": "`BandwidthRequest` describes the size of receipts that a shard would like to send to another shard.\nWhen a shard wants to send a lot of receipts to another shard, it needs to create a request and wait\nfor a bandwidth grant from the bandwidth scheduler.",
"type": "object",
"required": [
"requested_values_bitmap",
"to_shard"
],
"properties": {
"requested_values_bitmap": {
"description": "Bitmap which describes what values of bandwidth are requested.",
"allOf": [
{
"$ref": "#/components/schemas/BandwidthRequestBitmap"
}
]
},
"to_shard": {
"description": "Requesting bandwidth to this shard.",
"type": "integer",
"format": "uint16",
"maximum": 65535.0,
"minimum": 0.0
}
}
}
Fields§
§requested_values_bitmap: BandwidthRequestBitmap
Bitmap which describes what values of bandwidth are requested.
to_shard: u16
Requesting bandwidth to this shard.
Trait Implementations§
Source§impl Clone for BandwidthRequest
impl Clone for BandwidthRequest
Source§fn clone(&self) -> BandwidthRequest
fn clone(&self) -> BandwidthRequest
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 BandwidthRequest
impl Debug for BandwidthRequest
Source§impl<'de> Deserialize<'de> for BandwidthRequest
impl<'de> Deserialize<'de> for BandwidthRequest
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 From<&BandwidthRequest> for BandwidthRequest
impl From<&BandwidthRequest> for BandwidthRequest
Source§fn from(value: &BandwidthRequest) -> Self
fn from(value: &BandwidthRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BandwidthRequest
impl RefUnwindSafe for BandwidthRequest
impl Send for BandwidthRequest
impl Sync for BandwidthRequest
impl Unpin for BandwidthRequest
impl UnwindSafe for BandwidthRequest
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