pub struct ByteSliceInnerPacketBuilder<B>(pub B);
Expand description
An InnerPacketBuilder
created from any B: SplitByteSlice
.
ByteSliceInnerPacketBuilder<B>
implements InnerPacketBuilder
so long as
B: SplitByteSlice
.
Tuple Fields§
§0: B
Trait Implementations§
Source§impl<B: SplitByteSlice> Debug for ByteSliceInnerPacketBuilder<B>
impl<B: SplitByteSlice> Debug for ByteSliceInnerPacketBuilder<B>
Source§impl<B: SplitByteSlice> InnerPacketBuilder for ByteSliceInnerPacketBuilder<B>
impl<B: SplitByteSlice> InnerPacketBuilder for ByteSliceInnerPacketBuilder<B>
Source§fn serialize(&self, buffer: &mut [u8])
fn serialize(&self, buffer: &mut [u8])
Serializes this packet into an existing buffer. Read more
Source§fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
Source§fn into_serializer_with<B: ShrinkBuffer>(
self,
buffer: B,
) -> InnerSerializer<Self, B>where
Self: Sized,
fn into_serializer_with<B: ShrinkBuffer>(
self,
buffer: B,
) -> InnerSerializer<Self, B>where
Self: Sized,
Converts this
InnerPacketBuilder
into a Serializer
with a buffer
that can be used for serialization. Read moreAuto Trait Implementations§
impl<B> Freeze for ByteSliceInnerPacketBuilder<B>where
B: Freeze,
impl<B> RefUnwindSafe for ByteSliceInnerPacketBuilder<B>where
B: RefUnwindSafe,
impl<B> Send for ByteSliceInnerPacketBuilder<B>where
B: Send,
impl<B> Sync for ByteSliceInnerPacketBuilder<B>where
B: Sync,
impl<B> Unpin for ByteSliceInnerPacketBuilder<B>where
B: Unpin,
impl<B> UnwindSafe for ByteSliceInnerPacketBuilder<B>where
B: 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