pub struct ControlHello {
pub protocol: String,
pub min_generation: u8,
pub max_generation: u8,
pub max_frame_size: u32,
pub max_in_flight: u32,
}Expand description
Opening framed-control offer. The envelope generation is always one.
Fields§
§protocol: StringMust equal CONTROL_PROTOCOL.
min_generation: u8Oldest application generation understood by this client.
max_generation: u8Newest application generation understood by this client.
max_frame_size: u32Largest application frame this client can accept.
max_in_flight: u32Maximum outstanding IDs this client will use.
Implementations§
Source§impl ControlHello
impl ControlHello
Sourcepub fn validate(&self) -> Result<(), ControlError>
pub fn validate(&self) -> Result<(), ControlError>
Validate the offer without accepting any application operation.
Trait Implementations§
Source§impl Clone for ControlHello
impl Clone for ControlHello
Source§fn clone(&self) -> ControlHello
fn clone(&self) -> ControlHello
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 ControlHello
impl Debug for ControlHello
Source§impl Default for ControlHello
impl Default for ControlHello
Source§impl<'de> Deserialize<'de> for ControlHello
impl<'de> Deserialize<'de> for ControlHello
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ControlHello
Source§impl PartialEq for ControlHello
impl PartialEq for ControlHello
Source§impl Serialize for ControlHello
impl Serialize for ControlHello
impl StructuralPartialEq for ControlHello
Auto Trait Implementations§
impl Freeze for ControlHello
impl RefUnwindSafe for ControlHello
impl Send for ControlHello
impl Sync for ControlHello
impl Unpin for ControlHello
impl UnsafeUnpin for ControlHello
impl UnwindSafe for ControlHello
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