Trait ux::prelude::DataInputStreamExtManual[]

pub trait DataInputStreamExtManual: 'static {
    pub fn read_line<P>(
        &self,
        cancellable: Option<&P>
    ) -> Result<Vec<u8, Global>, Error>
    where
        P: IsA<Cancellable>
;
pub fn read_line_async<P, Q>(
        &self,
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    )
    where
        P: IsA<Cancellable>,
        Q: 'static + FnOnce(Result<Vec<u8, Global>, Error>) + Send
;
pub fn read_line_async_future(
        &self,
        io_priority: Priority
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, Error>> + 'static, Global>>;
pub fn read_line_utf8<P>(
        &self,
        cancellable: Option<&P>
    ) -> Result<Option<GString>, Error>
    where
        P: IsA<Cancellable>
;
pub fn read_line_utf8_async<P, Q>(
        &self,
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    )
    where
        P: IsA<Cancellable>,
        Q: 'static + FnOnce(Result<Option<GString>, Error>) + Send
;
pub fn read_line_utf8_async_future(
        &self,
        io_priority: Priority
    ) -> Pin<Box<dyn Future<Output = Result<Option<GString>, Error>> + 'static, Global>>;
pub fn read_until<P>(
        &self,
        stop_chars: &[u8],
        cancellable: Option<&P>
    ) -> Result<Vec<u8, Global>, Error>
    where
        P: IsA<Cancellable>
;
pub fn read_until_async<P, Q>(
        &self,
        stop_chars: &[u8],
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    )
    where
        P: IsA<Cancellable>,
        Q: 'static + FnOnce(Result<Vec<u8, Global>, Error>) + Send
;
pub fn read_until_async_future(
        &self,
        stop_chars: &[u8],
        io_priority: Priority
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, Error>> + 'static, Global>>;
pub fn read_upto<P>(
        &self,
        stop_chars: &[u8],
        cancellable: Option<&P>
    ) -> Result<Vec<u8, Global>, Error>
    where
        P: IsA<Cancellable>
;
pub fn read_upto_async<P, Q>(
        &self,
        stop_chars: &[u8],
        io_priority: Priority,
        cancellable: Option<&P>,
        callback: Q
    )
    where
        P: IsA<Cancellable>,
        Q: 'static + FnOnce(Result<Vec<u8, Global>, Error>) + Send
;
pub fn read_upto_async_future(
        &self,
        stop_chars: &[u8],
        io_priority: Priority
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, Error>> + 'static, Global>>; }

Required methods

pub fn read_line<P>(
    &self,
    cancellable: Option<&P>
) -> Result<Vec<u8, Global>, Error> where
    P: IsA<Cancellable>, 

pub fn read_line_async<P, Q>(
    &self,
    io_priority: Priority,
    cancellable: Option<&P>,
    callback: Q
) where
    P: IsA<Cancellable>,
    Q: 'static + FnOnce(Result<Vec<u8, Global>, Error>) + Send

pub fn read_line_async_future(
    &self,
    io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, Error>> + 'static, Global>>

pub fn read_line_utf8<P>(
    &self,
    cancellable: Option<&P>
) -> Result<Option<GString>, Error> where
    P: IsA<Cancellable>, 

pub fn read_line_utf8_async<P, Q>(
    &self,
    io_priority: Priority,
    cancellable: Option<&P>,
    callback: Q
) where
    P: IsA<Cancellable>,
    Q: 'static + FnOnce(Result<Option<GString>, Error>) + Send

pub fn read_line_utf8_async_future(
    &self,
    io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<Option<GString>, Error>> + 'static, Global>>

pub fn read_until<P>(
    &self,
    stop_chars: &[u8],
    cancellable: Option<&P>
) -> Result<Vec<u8, Global>, Error> where
    P: IsA<Cancellable>, 

👎 Deprecated

pub fn read_until_async<P, Q>(
    &self,
    stop_chars: &[u8],
    io_priority: Priority,
    cancellable: Option<&P>,
    callback: Q
) where
    P: IsA<Cancellable>,
    Q: 'static + FnOnce(Result<Vec<u8, Global>, Error>) + Send

👎 Deprecated

pub fn read_until_async_future(
    &self,
    stop_chars: &[u8],
    io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, Error>> + 'static, Global>>

👎 Deprecated

pub fn read_upto<P>(
    &self,
    stop_chars: &[u8],
    cancellable: Option<&P>
) -> Result<Vec<u8, Global>, Error> where
    P: IsA<Cancellable>, 

pub fn read_upto_async<P, Q>(
    &self,
    stop_chars: &[u8],
    io_priority: Priority,
    cancellable: Option<&P>,
    callback: Q
) where
    P: IsA<Cancellable>,
    Q: 'static + FnOnce(Result<Vec<u8, Global>, Error>) + Send

pub fn read_upto_async_future(
    &self,
    stop_chars: &[u8],
    io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<Vec<u8, Global>, Error>> + 'static, Global>>

Loading content...

Implementors

impl<O> DataInputStreamExtManual for O where
    O: IsA<DataInputStream>, 

Loading content...