Skip to main content

Input

Trait Input 

Source
pub trait Input:
    Read
    + AsFd
    + Send { }
Expand description

Platform-specific capabilities required from a Unix event input handle.

The handle must implement Read, expose an fd through AsFd, and be safe to move to the helper thread used by async streams. Any type satisfying those bounds implements this trait automatically.

Users normally do not implement this trait manually; pass the input half returned by the terminal API to EventSource::new.

Implementors§

Source§

impl<T: Read + AsFd + Send> Input for T

Available on Unix only.