pub trait Builder<B: Buffer> {
// Required methods
fn with(buffer: B) -> Result<Self>
where Self: Sized;
fn finalizer(&mut self) -> &mut Finalization;
fn build(self) -> Result<B::Inner>;
}
Expand description
A packet Builder
.
Required Methods§
Sourcefn with(buffer: B) -> Result<Self>where
Self: Sized,
fn with(buffer: B) -> Result<Self>where
Self: Sized,
Create a new packet Builder
with the given buffer.
Sourcefn finalizer(&mut self) -> &mut Finalization
fn finalizer(&mut self) -> &mut Finalization
Access the finalizers.