pub struct Agreement {
pub abi_major: u16,
pub abi_minor: u16,
pub agreed: CapabilitySet,
pub window_bytes: u64,
pub max_batch_rows: u64,
}Expand description
What the two sides agreed on.
Fields§
§abi_major: u16The major version both sides speak.
abi_minor: u16The minor version both sides speak, which is the lower of the two.
agreed: CapabilitySetThe capabilities the host offers and the decoder asked for, required or optional.
A capability the host offers and the decoder never mentioned is not in here, so the host can use this to decide what it actually has to set up.
window_bytes: u64Carried over from the host’s Hello so the caller has one thing to hold on to.
max_batch_rows: u64Carried over from the host’s Hello.
Implementations§
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