pub struct DefaultClientConnectionHandler;Expand description
Client connection handler with no custom initial data that encodes CARGO_PKG_VERSION
into the handshake tailer ID field.
Trait Implementations§
Source§impl ClientConnectionHandler for DefaultClientConnectionHandler
impl ClientConnectionHandler for DefaultClientConnectionHandler
Source§fn initial_data(&self) -> StaticByteBuffer
fn initial_data(&self) -> StaticByteBuffer
Produce initial data to include in the client handshake.
Source§fn version(&self, length: usize) -> StaticByteBuffer
fn version(&self, length: usize) -> StaticByteBuffer
Produce the version bytes to place in the handshake tailer ID field, clamped to
length bytes.Auto Trait Implementations§
impl Freeze for DefaultClientConnectionHandler
impl RefUnwindSafe for DefaultClientConnectionHandler
impl Send for DefaultClientConnectionHandler
impl Sync for DefaultClientConnectionHandler
impl Unpin for DefaultClientConnectionHandler
impl UnsafeUnpin for DefaultClientConnectionHandler
impl UnwindSafe for DefaultClientConnectionHandler
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