Trait gio::prelude::DataInputStreamExt
source · [−]pub trait DataInputStreamExt: 'static {
Show 13 methods
fn byte_order(&self) -> DataStreamByteOrder;
fn newline_type(&self) -> DataStreamNewlineType;
fn read_byte(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<u8, Error>;
fn read_int16(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<i16, Error>;
fn read_int32(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<i32, Error>;
fn read_int64(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<i64, Error>;
fn read_uint16(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<u16, Error>;
fn read_uint32(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<u32, Error>;
fn read_uint64(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<u64, Error>;
fn set_byte_order(&self, order: DataStreamByteOrder);
fn set_newline_type(&self, type_: DataStreamNewlineType);
fn connect_byte_order_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_newline_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required Methods
source
fn byte_order(&self) -> DataStreamByteOrder
source
fn newline_type(&self) -> DataStreamNewlineType
sourcefn read_int16(
fn read_int16(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<i16, Error>
sourcefn read_int32(
fn read_int32(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<i32, Error>
sourcefn read_int64(
fn read_int64(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<i64, Error>
sourcefn read_uint16(
fn read_uint16(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<u16, Error>
sourcefn read_uint32(
fn read_uint32(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<u32, Error>
sourcefn read_uint64(
fn read_uint64(
&self,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<u64, Error>
source
fn set_byte_order(&self, order: DataStreamByteOrder)
source
fn set_newline_type(&self, type_: DataStreamNewlineType)
sourcefn connect_byte_order_notify<F: Fn(&Self) + 'static>(
fn connect_byte_order_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_newline_type_notify<F: Fn(&Self) + 'static>(