Trait gio::prelude::PollableOutputStreamExtManual
source · pub trait PollableOutputStreamExtManual: Sealed + IsA<PollableOutputStream> {
// Provided methods
fn create_source<F, C>(
&self,
cancellable: Option<&C>,
name: Option<&str>,
priority: Priority,
func: F
) -> Source
where F: FnMut(&Self) -> ControlFlow + 'static,
C: IsA<Cancellable> { ... }
fn create_source_future<C: IsA<Cancellable>>(
&self,
cancellable: Option<&C>,
priority: Priority
) -> Pin<Box<dyn Future<Output = ()> + 'static>> { ... }
fn create_source_stream<C: IsA<Cancellable>>(
&self,
cancellable: Option<&C>,
priority: Priority
) -> Pin<Box<dyn Stream<Item = ()> + 'static>> { ... }
fn writev_nonblocking(
&self,
vectors: &[OutputVector<'_>],
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<(PollableReturn, usize), Error> { ... }
fn into_async_write(self) -> Result<OutputStreamAsyncWrite<Self>, Self>
where Self: IsA<PollableOutputStream> { ... }
}
Provided Methods§
fn create_source<F, C>( &self, cancellable: Option<&C>, name: Option<&str>, priority: Priority, func: F ) -> Source
fn create_source_future<C: IsA<Cancellable>>( &self, cancellable: Option<&C>, priority: Priority ) -> Pin<Box<dyn Future<Output = ()> + 'static>>
fn create_source_stream<C: IsA<Cancellable>>( &self, cancellable: Option<&C>, priority: Priority ) -> Pin<Box<dyn Stream<Item = ()> + 'static>>
fn writev_nonblocking( &self, vectors: &[OutputVector<'_>], cancellable: Option<&impl IsA<Cancellable>> ) -> Result<(PollableReturn, usize), Error>
Available on crate feature
v2_60
only.fn into_async_write(self) -> Result<OutputStreamAsyncWrite<Self>, Self>where
Self: IsA<PollableOutputStream>,
Object Safety§
This trait is not object safe.