[][src]Trait gio::DataInputStreamExt

pub trait DataInputStreamExt: 'static {
    fn get_byte_order(&self) -> DataStreamByteOrder;
fn get_newline_type(&self) -> DataStreamNewlineType;
fn read_byte<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<u8, Error>;
fn read_int16<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<i16, Error>;
fn read_int32<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<i32, Error>;
fn read_int64<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<i64, Error>;
fn read_line_utf8<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<(Option<GString>, usize), Error>;
fn read_uint16<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<u16, Error>;
fn read_uint32<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<u32, Error>;
fn read_uint64<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        cancellable: Q
    ) -> Result<u64, Error>;
fn read_until<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        stop_chars: &str,
        cancellable: Q
    ) -> Result<(GString, usize), Error>;
fn read_until_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(GString, usize), Error>) + Send + 'static>(
        &self,
        stop_chars: &str,
        io_priority: Priority,
        cancellable: Q,
        callback: R
    );
fn read_upto<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
        &self,
        stop_chars: &str,
        cancellable: Q
    ) -> Result<(GString, usize), Error>;
fn read_upto_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(GString, usize), Error>) + Send + 'static>(
        &self,
        stop_chars: &str,
        io_priority: Priority,
        cancellable: Q,
        callback: R
    );
fn set_byte_order(&self, order: DataStreamByteOrder);
fn set_newline_type(&self, type_: DataStreamNewlineType);
fn connect_property_byte_order_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_newline_type_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn get_byte_order(&self) -> DataStreamByteOrder

fn get_newline_type(&self) -> DataStreamNewlineType

fn read_byte<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<u8, Error>

fn read_int16<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<i16, Error>

fn read_int32<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<i32, Error>

fn read_int64<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<i64, Error>

fn read_line_utf8<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<(Option<GString>, usize), Error>

fn read_uint16<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<u16, Error>

fn read_uint32<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<u32, Error>

fn read_uint64<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    cancellable: Q
) -> Result<u64, Error>

fn read_until<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    stop_chars: &str,
    cancellable: Q
) -> Result<(GString, usize), Error>

fn read_until_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(GString, usize), Error>) + Send + 'static>(
    &self,
    stop_chars: &str,
    io_priority: Priority,
    cancellable: Q,
    callback: R
)

fn read_upto<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>>(
    &self,
    stop_chars: &str,
    cancellable: Q
) -> Result<(GString, usize), Error>

fn read_upto_async<'a, P: IsA<Cancellable> + 'a, Q: Into<Option<&'a P>>, R: FnOnce(Result<(GString, usize), Error>) + Send + 'static>(
    &self,
    stop_chars: &str,
    io_priority: Priority,
    cancellable: Q,
    callback: R
)

fn set_byte_order(&self, order: DataStreamByteOrder)

fn set_newline_type(&self, type_: DataStreamNewlineType)

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

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

Loading content...

Implementors

impl<O: IsA<DataInputStream>> DataInputStreamExt for O[src]

Loading content...