pub struct ServerHandshakeBuilder<MAJOR_VER = u16, MINOR_VER = u16, EXTENSIONS = Array<'static, i16, ProtocolExtension<'static>>>where
MAJOR_VER: EncoderFor<u16>,
MINOR_VER: EncoderFor<u16>,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>>,{
pub major_ver: MAJOR_VER,
pub minor_ver: MINOR_VER,
pub extensions: EXTENSIONS,
}
Fields§
§major_ver: MAJOR_VER
Maximum supported or client-requested protocol major version.
minor_ver: MINOR_VER
Maximum supported or client-requested protocol minor version.
extensions: EXTENSIONS
Supported protocol extensions.
Trait Implementations§
Source§impl<MAJOR_VER, MINOR_VER, EXTENSIONS> BuilderFor for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>where
MAJOR_VER: EncoderFor<u16>,
MINOR_VER: EncoderFor<u16>,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>>,
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> BuilderFor for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>where
MAJOR_VER: EncoderFor<u16>,
MINOR_VER: EncoderFor<u16>,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>>,
type Message = ServerHandshake<'static>
Source§impl<MAJOR_VER, MINOR_VER, EXTENSIONS> Debug for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>where
MAJOR_VER: EncoderFor<u16> + Debug,
MINOR_VER: EncoderFor<u16> + Debug,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>> + Debug,
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> Debug for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>where
MAJOR_VER: EncoderFor<u16> + Debug,
MINOR_VER: EncoderFor<u16> + Debug,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>> + Debug,
Source§impl<MAJOR_VER, MINOR_VER, EXTENSIONS> Default for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>where
MAJOR_VER: EncoderFor<u16> + Default,
MINOR_VER: EncoderFor<u16> + Default,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>> + Default,
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> Default for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>where
MAJOR_VER: EncoderFor<u16> + Default,
MINOR_VER: EncoderFor<u16> + Default,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>> + Default,
Source§fn default() -> ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>
fn default() -> ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>
Returns the “default value” for a type. Read more
Source§impl<MAJOR_VER, MINOR_VER, EXTENSIONS> EncoderFor<ServerHandshake<'static>> for &ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>where
MAJOR_VER: EncoderFor<u16>,
MINOR_VER: EncoderFor<u16>,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>>,
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> EncoderFor<ServerHandshake<'static>> for &ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>where
MAJOR_VER: EncoderFor<u16>,
MINOR_VER: EncoderFor<u16>,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>>,
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl<MAJOR_VER, MINOR_VER, EXTENSIONS> EncoderFor<ServerHandshake<'static>> for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>where
MAJOR_VER: EncoderFor<u16>,
MINOR_VER: EncoderFor<u16>,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>>,
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> EncoderFor<ServerHandshake<'static>> for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>where
MAJOR_VER: EncoderFor<u16>,
MINOR_VER: EncoderFor<u16>,
EXTENSIONS: EncoderFor<Array<'static, i16, ProtocolExtension<'static>>>,
fn encode_for(&self, buf: &mut BufWriter<'_>)
Auto Trait Implementations§
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> Freeze for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> RefUnwindSafe for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> Send for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> Sync for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> Unpin for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>
impl<MAJOR_VER, MINOR_VER, EXTENSIONS> UnwindSafe for ServerHandshakeBuilder<MAJOR_VER, MINOR_VER, EXTENSIONS>
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.