Struct gio::builders::DataInputStreamBuilder
source · pub struct DataInputStreamBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct DataInputStream
objects.
Implementations§
source§impl DataInputStreamBuilder
impl DataInputStreamBuilder
sourcepub fn byte_order(self, byte_order: DataStreamByteOrder) -> Self
pub fn byte_order(self, byte_order: DataStreamByteOrder) -> Self
The :byte-order property determines the byte ordering that is used when reading multi-byte entities (such as integers) from the stream.
sourcepub fn newline_type(self, newline_type: DataStreamNewlineType) -> Self
pub fn newline_type(self, newline_type: DataStreamNewlineType) -> Self
The :newline-type property determines what is considered as a line ending when reading complete lines from the stream.
sourcepub fn buffer_size(self, buffer_size: u32) -> Self
pub fn buffer_size(self, buffer_size: u32) -> Self
The size of the backend buffer, in bytes.
sourcepub fn base_stream(self, base_stream: &impl IsA<InputStream>) -> Self
pub fn base_stream(self, base_stream: &impl IsA<InputStream>) -> Self
The underlying base stream on which the I/O ops will be done.
sourcepub fn close_base_stream(self, close_base_stream: bool) -> Self
pub fn close_base_stream(self, close_base_stream: bool) -> Self
Whether the base stream should be closed when the filter stream is closed.
sourcepub fn build(self) -> DataInputStream
pub fn build(self) -> DataInputStream
Build the DataInputStream
.
Auto Trait Implementations§
impl Freeze for DataInputStreamBuilder
impl RefUnwindSafe for DataInputStreamBuilder
impl !Send for DataInputStreamBuilder
impl !Sync for DataInputStreamBuilder
impl Unpin for DataInputStreamBuilder
impl UnwindSafe for DataInputStreamBuilder
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