[−][src]Type Definition linux::kty::c_int
type c_int = i32;
Trait Implementations
impl Read for c_int
[src]
fn scatter_read(&mut self, bufs: &mut [&mut [d8]]) -> Result<usize>
[src]
fn read(&mut self, buf: &mut [d8]) -> Result<usize>
[src]
fn read_all(&mut self, buf: &mut [d8]) -> Result<usize>
[src]
Tries to read bytes until the buffer is buffer. Read more
impl Write for c_int
[src]
fn gather_write(&mut self, bufs: &[&[u8]]) -> Result<usize>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn flush(&mut self) -> Result<()>
[src]
fn write_all(&mut self, buf: &[u8]) -> Result<usize>
[src]
Tries to write the complete buffer to the byte-stream. Read more
fn write_str(&mut self, buf: &str) -> Result<usize>
[src]
Writes a string to the byte-stream. Read more
fn write_fmt_linux(&mut self, fmt: Arguments) -> Result<()>
[src]
impl FdContainer for c_int
[src]
fn is_owned(&self) -> bool
[src]
fn borrow(&self) -> c_int
[src]
fn from_owned(fd: c_int) -> c_int
[src]
fn from_borrowed(fd: c_int) -> c_int
[src]
ⓘImportant traits for FdIofn as_fdio(&self) -> FdIo
[src]
ⓘImportant traits for FdIo
Borrows the file descriptor as an FdIo
.
fn is_close_on_exec(&self) -> Result<bool>
[src]
Retrieves the status of the close on exec
flag. Read more
fn set_close_on_exec(&self, val: bool) -> Result
[src]
Enables or disables the close on exec
flag. Read more
fn description_flags(&self) -> Result<DescriptionFlags>
[src]
Retrieves the file description flags. Read more
fn set_description_flags(&self, flags: DescriptionFlags) -> Result
[src]
Sets the file description flags. Read more
fn duplicate(&self) -> Result<Self> where
Self: Sized,
[src]
Self: Sized,
Duplicates the file descriptor. Read more
fn duplicate_min(&self, min: c_int) -> Result<Self> where
Self: Sized,
[src]
Self: Sized,
Duplicates the file descriptor so that the duplicated one has a minimum value. Read more
fn duplicate_as(&self, new: c_int) -> Result<Self> where
Self: Sized,
[src]
Self: Sized,
Duplicates the file descriptor, replacing an existing one. Read more