Struct libnotcurses_sys::c_api::ffi::ncfdplane_options
source · #[repr(C)]pub struct ncfdplane_options {
pub curry: *mut c_void,
pub follow: bool,
pub flags: u64,
}Expand description
read from an fd until EOF (or beyond, if follow is set), invoking the user’s callback each time. runs in its own context. on EOF or error, the finalizer callback will be invoked, and the user ought destroy the ncfdplane. the data is not guaranteed to be nul-terminated, and may contain arbitrary zeroes.
Fields§
§curry: *mut c_voidparameter provided to callbacks
follow: boolkeep reading after hitting end? (think tail -f)
flags: u64bitfield over NCOPTION_FDPLANE_*
Trait Implementations§
source§impl Clone for ncfdplane_options
impl Clone for ncfdplane_options
source§fn clone(&self) -> ncfdplane_options
fn clone(&self) -> ncfdplane_options
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ncfdplane_options
impl Debug for ncfdplane_options
source§impl Default for ncfdplane_options
impl Default for ncfdplane_options
source§impl Hash for ncfdplane_options
impl Hash for ncfdplane_options
source§impl Ord for ncfdplane_options
impl Ord for ncfdplane_options
source§fn cmp(&self, other: &ncfdplane_options) -> Ordering
fn cmp(&self, other: &ncfdplane_options) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ncfdplane_options> for ncfdplane_options
impl PartialEq<ncfdplane_options> for ncfdplane_options
source§fn eq(&self, other: &ncfdplane_options) -> bool
fn eq(&self, other: &ncfdplane_options) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ncfdplane_options> for ncfdplane_options
impl PartialOrd<ncfdplane_options> for ncfdplane_options
source§fn partial_cmp(&self, other: &ncfdplane_options) -> Option<Ordering>
fn partial_cmp(&self, other: &ncfdplane_options) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more