pub struct NetbootPacketBuilder { /* private fields */ }Expand description
A PacketBuilder for the netboot protocol.
Implementations§
Source§impl NetbootPacketBuilder
impl NetbootPacketBuilder
pub fn new(cmd: OpcodeOrErr, cookie: u32, arg: u32) -> Self
Trait Implementations§
Source§impl Debug for NetbootPacketBuilder
impl Debug for NetbootPacketBuilder
Source§impl NestablePacketBuilder for NetbootPacketBuilder
impl NestablePacketBuilder for NetbootPacketBuilder
Source§fn constraints(&self) -> PacketConstraints
fn constraints(&self) -> PacketConstraints
Gets the constraints for this
PacketBuilder.Source§impl<C: SerializationContext> PacketBuilder<C> for NetbootPacketBuilder
impl<C: SerializationContext> PacketBuilder<C> for NetbootPacketBuilder
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 NetbootPacketBuilder
impl RefUnwindSafe for NetbootPacketBuilder
impl Send for NetbootPacketBuilder
impl Sync for NetbootPacketBuilder
impl Unpin for NetbootPacketBuilder
impl UnsafeUnpin for NetbootPacketBuilder
impl UnwindSafe for NetbootPacketBuilder
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