pub struct WireLimits {
pub envelope: EnvelopeLimits,
pub max_operations: usize,
}Expand description
Directional receive and command work bounds.
Fields§
§envelope: EnvelopeLimitsMaximum actual metadata and payload frame sizes.
max_operations: usizeMaximum canonical operations in a prepare/history response, independent of records.
Implementations§
Source§impl WireLimits
impl WireLimits
Sourcepub fn for_transfer(
max_operations: usize,
max_body_bytes: usize,
) -> Option<Self>
pub fn for_transfer( max_operations: usize, max_body_bytes: usize, ) -> Option<Self>
Conservative shared prepare/history profile. Round the largest fixed metadata span up to 16 bytes, preserving room for control exchanges.
Sourcepub fn message_bytes(self) -> Option<usize>
pub fn message_bytes(self) -> Option<usize>
Bound a routed native message, including its 16-byte destination identity.
Trait Implementations§
Source§impl Clone for WireLimits
impl Clone for WireLimits
impl Copy for WireLimits
Source§impl Debug for WireLimits
impl Debug for WireLimits
Source§impl Default for WireLimits
impl Default for WireLimits
impl Eq for WireLimits
Source§impl PartialEq for WireLimits
impl PartialEq for WireLimits
impl StructuralPartialEq for WireLimits
Auto Trait Implementations§
impl Freeze for WireLimits
impl RefUnwindSafe for WireLimits
impl Send for WireLimits
impl Sync for WireLimits
impl Unpin for WireLimits
impl UnsafeUnpin for WireLimits
impl UnwindSafe for WireLimits
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