pub struct Negotiated {
pub use_type_id: bool,
pub may_send_computed: bool,
pub compression: WireCompression,
pub peer_max_bytes: usize,
}Expand description
The encoding choices negotiated for sending TO a peer, from my profile and the peer’s advertised one.
Fields§
§use_type_id: boolElide type NAMES from the wire — only when both sides speak type-id AND share the same non-zero registry epoch (so the receiver can resolve the ids).
may_send_computed: boolShip a computed function — only when the receiver both accepts computed sends and advertises the capability. (The receiver still gates INVOCATION through its acceptance contracts.)
compression: WireCompressionThe strongest compression BOTH peers understand (None if they share none).
peer_max_bytes: usizeThe receiver’s byte budget — keep each message under this so it is not refused.
Trait Implementations§
Source§impl Clone for Negotiated
impl Clone for Negotiated
Source§fn clone(&self) -> Negotiated
fn clone(&self) -> Negotiated
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Negotiated
impl Debug for Negotiated
Source§impl PartialEq for Negotiated
impl PartialEq for Negotiated
Source§fn eq(&self, other: &Negotiated) -> bool
fn eq(&self, other: &Negotiated) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Negotiated
impl Eq for Negotiated
impl StructuralPartialEq for Negotiated
Auto Trait Implementations§
impl Freeze for Negotiated
impl RefUnwindSafe for Negotiated
impl Send for Negotiated
impl Sync for Negotiated
impl Unpin for Negotiated
impl UnsafeUnpin for Negotiated
impl UnwindSafe for Negotiated
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.