Struct libnotcurses_sys::ffi::ncfdplane_options [−][src]
#[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_void
parameter provided to callbacks
follow: bool
keep reading after hitting end? (think tail -f)
flags: u64
bitfield over NCOPTION_FDPLANE_*
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ncfdplane_options
impl !Send for ncfdplane_options
impl !Sync for ncfdplane_options
impl Unpin for ncfdplane_options
impl UnwindSafe for ncfdplane_options
Blanket Implementations
Mutably borrows from an owned value. Read more