pub struct DataPacketBuilder { /* private fields */ }Expand description
Implements PacketBuilder for a data request.
Implementations§
Trait Implementations§
Source§impl Debug for DataPacketBuilder
impl Debug for DataPacketBuilder
Source§impl NestablePacketBuilder for DataPacketBuilder
impl NestablePacketBuilder for DataPacketBuilder
Source§fn constraints(&self) -> PacketConstraints
fn constraints(&self) -> PacketConstraints
Gets the constraints for this
PacketBuilder.Source§impl<C: SerializationContext> PacketBuilder<C> for DataPacketBuilder
impl<C: SerializationContext> PacketBuilder<C> for DataPacketBuilder
Source§fn serialize(
&self,
_context: &mut C,
target: &mut SerializeTarget<'_>,
_body: FragmentedBytesMut<'_, '_>,
)
fn serialize( &self, _context: &mut C, target: &mut SerializeTarget<'_>, _body: FragmentedBytesMut<'_, '_>, )
Serializes this packet into an existing buffer. Read more
Source§fn context_state(&self) -> <C as SerializationContext>::ContextState
fn context_state(&self) -> <C as SerializationContext>::ContextState
Gets the packet-specific state to use with the
SerializationContext.Auto Trait Implementations§
impl Freeze for DataPacketBuilder
impl RefUnwindSafe for DataPacketBuilder
impl Send for DataPacketBuilder
impl Sync for DataPacketBuilder
impl Unpin for DataPacketBuilder
impl UnsafeUnpin for DataPacketBuilder
impl UnwindSafe for DataPacketBuilder
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