pub struct Agreed {
pub version: u64,
pub send_max_header_bytes: u64,
pub guarantees: GuaranteeSet,
}Expand description
The negotiated parameters of a connection.
Fields§
§version: u64Effective wire protocol version: the highest version both sides support.
send_max_header_bytes: u64Largest header the peer accepts. Outgoing headers must not exceed it; it is not a limit on what we receive.
guarantees: GuaranteeSetThe effective guarantee set: the weaker of the two offers, dimension
by dimension (docs/PROTOCOL.md §2.3 step 5).
Between two v0 peers this is GuaranteeSet::CORE, because neither
declares anything and an absent declaration means core.
Trait Implementations§
impl Copy for Agreed
impl Eq for Agreed
impl StructuralPartialEq for Agreed
Auto Trait Implementations§
impl Freeze for Agreed
impl RefUnwindSafe for Agreed
impl Send for Agreed
impl Sync for Agreed
impl Unpin for Agreed
impl UnsafeUnpin for Agreed
impl UnwindSafe for Agreed
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