pub struct Agreement {
pub version: u32,
pub capabilities: u64,
pub max_frame: u32,
}Expand description
Agreed limits for one connection. Both peers independently calculate this.
Fields§
§version: u32Selected binary version.
capabilities: u64Intersection of the peers’ supported capabilities.
max_frame: u32Maximum encoded message size in either direction.
Trait Implementations§
impl Copy for Agreement
impl Eq for Agreement
impl StructuralPartialEq for Agreement
Auto Trait Implementations§
impl Freeze for Agreement
impl RefUnwindSafe for Agreement
impl Send for Agreement
impl Sync for Agreement
impl Unpin for Agreement
impl UnsafeUnpin for Agreement
impl UnwindSafe for Agreement
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