pub struct BatchPolicy {
pub max_members: u32,
pub max_canonical_bytes: u64,
pub max_members_per_scope: u32,
pub max_queue_delay_ms: u64,
pub max_backend_work: u64,
pub allocation: BatchChargeAllocation,
}Fields§
§max_members: u32§max_canonical_bytes: u64§max_members_per_scope: u32§max_queue_delay_ms: u64Upper bound on time a member may wait for peers. Batches are formed within one decision’s admission wave, so the runtime waits zero.
max_backend_work: u64§allocation: BatchChargeAllocationTrait Implementations§
Source§impl Clone for BatchPolicy
impl Clone for BatchPolicy
Source§impl Debug for BatchPolicy
impl Debug for BatchPolicy
Source§impl<'de> Deserialize<'de> for BatchPolicy
impl<'de> Deserialize<'de> for BatchPolicy
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
impl Eq for BatchPolicy
Source§impl JsonSchema for BatchPolicy
impl JsonSchema for BatchPolicy
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for BatchPolicy
impl PartialEq for BatchPolicy
Source§impl Serialize for BatchPolicy
impl Serialize for BatchPolicy
impl StructuralPartialEq for BatchPolicy
Auto Trait Implementations§
impl Freeze for BatchPolicy
impl RefUnwindSafe for BatchPolicy
impl Send for BatchPolicy
impl Sync for BatchPolicy
impl Unpin for BatchPolicy
impl UnsafeUnpin for BatchPolicy
impl UnwindSafe for BatchPolicy
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