Trait gio::prelude::DataOutputStreamExt [−][src]
pub trait DataOutputStreamExt: 'static {
fn byte_order(&self) -> DataStreamByteOrder;
fn put_byte<P: IsA<Cancellable>>(
&self,
data: u8,
cancellable: Option<&P>
) -> Result<(), Error>;
fn put_int16<P: IsA<Cancellable>>(
&self,
data: i16,
cancellable: Option<&P>
) -> Result<(), Error>;
fn put_int32<P: IsA<Cancellable>>(
&self,
data: i32,
cancellable: Option<&P>
) -> Result<(), Error>;
fn put_int64<P: IsA<Cancellable>>(
&self,
data: i64,
cancellable: Option<&P>
) -> Result<(), Error>;
fn put_string<P: IsA<Cancellable>>(
&self,
str: &str,
cancellable: Option<&P>
) -> Result<(), Error>;
fn put_uint16<P: IsA<Cancellable>>(
&self,
data: u16,
cancellable: Option<&P>
) -> Result<(), Error>;
fn put_uint32<P: IsA<Cancellable>>(
&self,
data: u32,
cancellable: Option<&P>
) -> Result<(), Error>;
fn put_uint64<P: IsA<Cancellable>>(
&self,
data: u64,
cancellable: Option<&P>
) -> Result<(), Error>;
fn set_byte_order(&self, order: DataStreamByteOrder);
fn connect_byte_order_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}Expand description
Required methods
fn byte_order(&self) -> DataStreamByteOrder
fn byte_order(&self) -> DataStreamByteOrderPuts a byte into the output stream.
data
a guchar.
cancellable
optional Cancellable object, None to ignore.
Returns
true if data was successfully added to the self.
Puts a signed 16-bit integer into the output stream.
data
a gint16.
cancellable
optional Cancellable object, None to ignore.
Returns
true if data was successfully added to the self.
Puts a signed 32-bit integer into the output stream.
data
a gint32.
cancellable
optional Cancellable object, None to ignore.
Returns
true if data was successfully added to the self.
Puts a signed 64-bit integer into the stream.
data
a gint64.
cancellable
optional Cancellable object, None to ignore.
Returns
true if data was successfully added to the self.
fn put_string<P: IsA<Cancellable>>(
&self,
str: &str,
cancellable: Option<&P>
) -> Result<(), Error>
fn put_string<P: IsA<Cancellable>>(
&self,
str: &str,
cancellable: Option<&P>
) -> Result<(), Error>Puts a string into the output stream.
str
a string.
cancellable
optional Cancellable object, None to ignore.
Returns
true if string was successfully added to the self.
fn put_uint16<P: IsA<Cancellable>>(
&self,
data: u16,
cancellable: Option<&P>
) -> Result<(), Error>
fn put_uint16<P: IsA<Cancellable>>(
&self,
data: u16,
cancellable: Option<&P>
) -> Result<(), Error>Puts an unsigned 16-bit integer into the output stream.
data
a guint16.
cancellable
optional Cancellable object, None to ignore.
Returns
true if data was successfully added to the self.
fn put_uint32<P: IsA<Cancellable>>(
&self,
data: u32,
cancellable: Option<&P>
) -> Result<(), Error>
fn put_uint32<P: IsA<Cancellable>>(
&self,
data: u32,
cancellable: Option<&P>
) -> Result<(), Error>Puts an unsigned 32-bit integer into the stream.
data
a guint32.
cancellable
optional Cancellable object, None to ignore.
Returns
true if data was successfully added to the self.
fn put_uint64<P: IsA<Cancellable>>(
&self,
data: u64,
cancellable: Option<&P>
) -> Result<(), Error>
fn put_uint64<P: IsA<Cancellable>>(
&self,
data: u64,
cancellable: Option<&P>
) -> Result<(), Error>Puts an unsigned 64-bit integer into the stream.
data
a guint64.
cancellable
optional Cancellable object, None to ignore.
Returns
true if data was successfully added to the self.
fn set_byte_order(&self, order: DataStreamByteOrder)
fn set_byte_order(&self, order: DataStreamByteOrder)fn connect_byte_order_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId