pub struct AddressCodec;Expand description
Codec for TUIC address encoding and decoding
Trait Implementations§
Source§impl Clone for AddressCodec
impl Clone for AddressCodec
Source§fn clone(&self) -> AddressCodec
fn clone(&self) -> AddressCodec
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 moreimpl Copy for AddressCodec
Source§impl Debug for AddressCodec
impl Debug for AddressCodec
Source§impl Decoder for AddressCodec
Available on crate feature decode only.Implementation according to TUIC specification:
https://github.com/proxy-rs/wind/blob/main/crates/wind-tuic/SPEC.md#6-address-encoding
impl Decoder for AddressCodec
Available on crate feature
decode only.Implementation according to TUIC specification: https://github.com/proxy-rs/wind/blob/main/crates/wind-tuic/SPEC.md#6-address-encoding
Source§type Error = ProtoError
type Error = ProtoError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for AddressCodec
impl RefUnwindSafe for AddressCodec
impl Send for AddressCodec
impl Sync for AddressCodec
impl Unpin for AddressCodec
impl UnsafeUnpin for AddressCodec
impl UnwindSafe for AddressCodec
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