Trait packet::builder::Builder
[−]
[src]
pub trait Builder<B: Buffer> { fn with(buffer: B) -> Result<Self>
where
Self: Sized; fn finalizer(&mut self) -> &mut Finalization; fn build(self) -> Result<B::Inner>; }
A packet Builder
.
Required Methods
fn with(buffer: B) -> Result<Self> where
Self: Sized,
Self: Sized,
Create a new packet Builder
with the given buffer.
fn finalizer(&mut self) -> &mut Finalization
Access the finalizers.
fn build(self) -> Result<B::Inner>
Build the packet.
Implementors
impl<B: Buffer> Build<B> for packet::ether::Builder<B>
impl<B: Buffer> Build<B> for packet::ip::Builder<B>
impl<B: Buffer> Build<B> for packet::ip::v4::Builder<B>
impl<B: Buffer> Build<B> for packet::ip::v6::Builder<B>
impl<B: Buffer> Build<B> for packet::icmp::Builder<B>
impl<B: Buffer> Build<B> for packet::icmp::echo::Builder<B>
impl<B: Buffer> Build<B> for packet::icmp::information::Builder<B>
impl<B: Buffer> Build<B> for packet::icmp::timestamp::Builder<B>
impl<B: Buffer> Build<B> for packet::tcp::Builder<B>
impl<B: Buffer> Build<B> for packet::udp::Builder<B>