pub struct OptionAckPacketBuilder { /* private fields */ }
Expand description
Implements [InnerPacketBuilder
] for option ack (OACK) messages.
Implementations§
Source§impl OptionAckPacketBuilder
impl OptionAckPacketBuilder
Sourcepub fn new_with(
options: impl IntoIterator<Item = Forceable<TftpOption>>,
) -> Self
pub fn new_with( options: impl IntoIterator<Item = Forceable<TftpOption>>, ) -> Self
Creates a new builder with the options in options
.
pub fn options_mut(&mut self) -> &mut OptionCollection
Trait Implementations§
Source§impl Debug for OptionAckPacketBuilder
impl Debug for OptionAckPacketBuilder
Source§impl Default for OptionAckPacketBuilder
impl Default for OptionAckPacketBuilder
Source§fn default() -> OptionAckPacketBuilder
fn default() -> OptionAckPacketBuilder
Returns the “default value” for a type. Read more
Source§impl InnerPacketBuilder for OptionAckPacketBuilder
impl InnerPacketBuilder for OptionAckPacketBuilder
Source§fn serialize(&self, buffer: &mut [u8])
fn serialize(&self, buffer: &mut [u8])
Serializes this packet into an existing buffer. Read more
§fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
fn into_serializer(self) -> InnerSerializer<Self, EmptyBuf>where
Self: Sized,
§fn into_serializer_with<B>(self, buffer: B) -> InnerSerializer<Self, B>where
B: ShrinkBuffer,
Self: Sized,
fn into_serializer_with<B>(self, buffer: B) -> InnerSerializer<Self, B>where
B: ShrinkBuffer,
Self: Sized,
Converts this
InnerPacketBuilder
into a [Serializer
] with a buffer
that can be used for serialization. Read moreAuto Trait Implementations§
impl Freeze for OptionAckPacketBuilder
impl RefUnwindSafe for OptionAckPacketBuilder
impl Send for OptionAckPacketBuilder
impl Sync for OptionAckPacketBuilder
impl Unpin for OptionAckPacketBuilder
impl UnwindSafe for OptionAckPacketBuilder
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