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.\n When a shard wants to send a lot of receipts to another shard, it needs to create a request and wait\n for 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",
"minimum": 0.0
}
}
}Fields§
§requested_values_bitmap: BandwidthRequestBitmapBitmap which describes what values of bandwidth are requested.
to_shard: u16Requesting 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§const fn clone_from(&mut self, source: &Self)
const 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<BandwidthRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BandwidthRequest, <__D as Deserializer<'de>>::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) -> BandwidthRequest
fn from(value: &BandwidthRequest) -> BandwidthRequest
Converts to this type from the input type.
Source§impl Serialize for BandwidthRequest
impl Serialize for BandwidthRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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