#[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 duplicate 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 for ncfdplane_options
impl PartialEq for ncfdplane_options
Source§impl PartialOrd for ncfdplane_options
impl PartialOrd for ncfdplane_options
impl Copy for ncfdplane_options
impl Eq for ncfdplane_options
impl StructuralPartialEq for ncfdplane_options
Auto Trait Implementations§
impl Freeze for ncfdplane_options
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more