Struct nix_compat::wire::de::reader::NixReaderBuilder
source · pub struct NixReaderBuilder {
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 NixReaderBuilder
impl NixReaderBuilder
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<R>(self, reader: R) -> NixReader<R>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NixReaderBuilder
impl RefUnwindSafe for NixReaderBuilder
impl Send for NixReaderBuilder
impl Sync for NixReaderBuilder
impl Unpin for NixReaderBuilder
impl UnwindSafe for NixReaderBuilder
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