Struct nix_compat::wire::ser::writer::NixWriterBuilder
source · pub struct NixWriterBuilder {
buf: Option<BytesMut>,
reserved_buf_size: usize,
max_buf_size: usize,
version: ProtocolVersion,
}
Fields§
§buf: Option<BytesMut>
§reserved_buf_size: usize
§max_buf_size: usize
§version: ProtocolVersion
Implementations§
source§impl NixWriterBuilder
impl NixWriterBuilder
pub fn set_buffer(self, buf: BytesMut) -> Self
pub fn set_reserved_buf_size(self, size: usize) -> Self
pub fn set_max_buf_size(self, size: usize) -> Self
pub fn set_version(self, version: ProtocolVersion) -> Self
pub fn build<W>(self, writer: W) -> NixWriter<W>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NixWriterBuilder
impl RefUnwindSafe for NixWriterBuilder
impl Send for NixWriterBuilder
impl Sync for NixWriterBuilder
impl Unpin for NixWriterBuilder
impl UnwindSafe for NixWriterBuilder
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