Trait DataOutputStreamExt

Source
pub trait DataOutputStreamExt: 'static {
    // Required methods
    fn get_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_property_byte_order_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_byte_order(&self) -> DataStreamByteOrder

Source

fn put_byte<P: IsA<Cancellable>>( &self, data: u8, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn put_int16<P: IsA<Cancellable>>( &self, data: i16, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn put_int32<P: IsA<Cancellable>>( &self, data: i32, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn put_int64<P: IsA<Cancellable>>( &self, data: i64, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn put_string<P: IsA<Cancellable>>( &self, str: &str, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn put_uint16<P: IsA<Cancellable>>( &self, data: u16, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn put_uint32<P: IsA<Cancellable>>( &self, data: u32, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn put_uint64<P: IsA<Cancellable>>( &self, data: u64, cancellable: Option<&P>, ) -> Result<(), Error>

Source

fn set_byte_order(&self, order: DataStreamByteOrder)

Source

fn connect_property_byte_order_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§