pub struct ProtocolV2FetchNegotiationResponse {
pub acknowledgments: Vec<ProtocolV2FetchAcknowledgment>,
pub has_following_sections: bool,
}Expand description
The acknowledgment phase of a multi-round protocol-v2 fetch.
When has_following_sections is true, the delimiter after
acknowledgments has already been consumed and the reader is positioned at
the next response section. Otherwise the response ended with a flush and
the client must send another negotiation request.
Fields§
§acknowledgments: Vec<ProtocolV2FetchAcknowledgment>§has_following_sections: boolTrait Implementations§
Source§impl Clone for ProtocolV2FetchNegotiationResponse
impl Clone for ProtocolV2FetchNegotiationResponse
Source§fn clone(&self) -> ProtocolV2FetchNegotiationResponse
fn clone(&self) -> ProtocolV2FetchNegotiationResponse
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 Default for ProtocolV2FetchNegotiationResponse
impl Default for ProtocolV2FetchNegotiationResponse
Source§fn default() -> ProtocolV2FetchNegotiationResponse
fn default() -> ProtocolV2FetchNegotiationResponse
Returns the “default value” for a type. Read more
impl Eq for ProtocolV2FetchNegotiationResponse
impl StructuralPartialEq for ProtocolV2FetchNegotiationResponse
Auto Trait Implementations§
impl Freeze for ProtocolV2FetchNegotiationResponse
impl RefUnwindSafe for ProtocolV2FetchNegotiationResponse
impl Send for ProtocolV2FetchNegotiationResponse
impl Sync for ProtocolV2FetchNegotiationResponse
impl Unpin for ProtocolV2FetchNegotiationResponse
impl UnsafeUnpin for ProtocolV2FetchNegotiationResponse
impl UnwindSafe for ProtocolV2FetchNegotiationResponse
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