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.
pub fn buffer_size(self, buffer_size: u32) -> Self
pub fn base_stream(self, base_stream: &impl IsA<InputStream>) -> Self
pub fn close_base_stream(self, close_base_stream: bool) -> Self
sourcepub fn build(self) -> DataInputStream
pub fn build(self) -> DataInputStream
Build the DataInputStream
.
Auto Trait Implementations§
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