pub struct NegotiateProtocolVersionBuilder<MINOR_VERSION = i32, OPTIONS = Array<'static, i32, ZTString<'static>>>{
pub minor_version: MINOR_VERSION,
pub options: OPTIONS,
}Fields§
§minor_version: MINOR_VERSIONNewest minor protocol version supported by the server.
options: OPTIONSList of protocol options not recognized.
Trait Implementations§
Source§impl<MINOR_VERSION, OPTIONS> BuilderFor for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
impl<MINOR_VERSION, OPTIONS> BuilderFor for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
type Message = NegotiateProtocolVersion<'static>
Source§impl<MINOR_VERSION, OPTIONS> Debug for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>where
MINOR_VERSION: EncoderFor<i32> + Debug,
OPTIONS: EncoderFor<Array<'static, i32, ZTString<'static>>> + Debug,
impl<MINOR_VERSION, OPTIONS> Debug for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>where
MINOR_VERSION: EncoderFor<i32> + Debug,
OPTIONS: EncoderFor<Array<'static, i32, ZTString<'static>>> + Debug,
Source§impl<MINOR_VERSION, OPTIONS> Default for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>where
MINOR_VERSION: EncoderFor<i32> + Default,
OPTIONS: EncoderFor<Array<'static, i32, ZTString<'static>>> + Default,
impl<MINOR_VERSION, OPTIONS> Default for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>where
MINOR_VERSION: EncoderFor<i32> + Default,
OPTIONS: EncoderFor<Array<'static, i32, ZTString<'static>>> + Default,
Source§fn default() -> NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
fn default() -> NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
Returns the “default value” for a type. Read more
Source§impl<MINOR_VERSION, OPTIONS> EncoderFor<NegotiateProtocolVersion<'static>> for &NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
impl<MINOR_VERSION, OPTIONS> EncoderFor<NegotiateProtocolVersion<'static>> for &NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl<MINOR_VERSION, OPTIONS> EncoderFor<NegotiateProtocolVersion<'static>> for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
impl<MINOR_VERSION, OPTIONS> EncoderFor<NegotiateProtocolVersion<'static>> for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
fn encode_for(&self, buf: &mut BufWriter<'_>)
Auto Trait Implementations§
impl<MINOR_VERSION, OPTIONS> Freeze for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
impl<MINOR_VERSION, OPTIONS> RefUnwindSafe for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>where
MINOR_VERSION: RefUnwindSafe,
OPTIONS: RefUnwindSafe,
impl<MINOR_VERSION, OPTIONS> Send for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
impl<MINOR_VERSION, OPTIONS> Sync for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
impl<MINOR_VERSION, OPTIONS> Unpin for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>
impl<MINOR_VERSION, OPTIONS> UnwindSafe for NegotiateProtocolVersionBuilder<MINOR_VERSION, OPTIONS>where
MINOR_VERSION: UnwindSafe,
OPTIONS: UnwindSafe,
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> EncoderForExt for Twhere
T: ?Sized,
impl<T> EncoderForExt for Twhere
T: ?Sized,
Source§fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Source§fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Source§fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.