pub trait PollableInputStreamExtManual: Sized {
// Required methods
fn create_source<F>(
&self,
cancellable: Option<&Cancellable>,
name: Option<&str>,
priority: Priority,
func: F,
) -> Source
where F: FnMut(&Self) -> Continue + 'static;
fn read_nonblocking(
&self,
buffer: &mut [u8],
cancellable: Option<&Cancellable>,
) -> Result<isize, Error>;
}
Required Methods§
fn create_source<F>( &self, cancellable: Option<&Cancellable>, name: Option<&str>, priority: Priority, func: F, ) -> Source
fn read_nonblocking( &self, buffer: &mut [u8], cancellable: Option<&Cancellable>, ) -> Result<isize, Error>
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.