Struct argdata::fd::Fd [−][src]
pub struct Fd(pub c_int);
A file descriptor of the current process.
Trait Implementations
impl Debug for Fd
[src]
impl Debug for Fd
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Fd
[src]
impl Clone for Fd
fn clone(&self) -> Fd
[src]
fn clone(&self) -> Fd
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for Fd
[src]
impl Copy for Fd
impl PartialEq for Fd
[src]
impl PartialEq for Fd
fn eq(&self, other: &Fd) -> bool
[src]
fn eq(&self, other: &Fd) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Fd) -> bool
[src]
fn ne(&self, other: &Fd) -> bool
This method tests for !=
.
impl Eq for Fd
[src]
impl Eq for Fd
impl Hash for Fd
[src]
impl Hash for Fd
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'d> Argdata<'d> for Fd
[src]
impl<'d> Argdata<'d> for Fd
fn read<'a>(&'a self) -> Result<Value<'a, 'd>, ReadError> where
'd: 'a,
[src]
fn read<'a>(&'a self) -> Result<Value<'a, 'd>, ReadError> where
'd: 'a,
Read the value.
fn serialized_length(&self) -> usize
[src]
fn serialized_length(&self) -> usize
The number of bytes that self.serialize()
will write.
fn serialize(
&self,
writer: &mut Write,
fd_map: Option<&mut FdMapping>
) -> Result<()>
[src]
fn serialize(
&self,
writer: &mut Write,
fd_map: Option<&mut FdMapping>
) -> Result<()>
Serialize the argdata to the given writer. Read more
fn get_type(&self) -> Result<Type, ReadError>
[src]
fn get_type(&self) -> Result<Type, ReadError>
Read the type of the value.
fn read_null(&self) -> Result<(), NotRead>
[src]
fn read_null(&self) -> Result<(), NotRead>
Check if the value is null.
fn read_binary(&self) -> Result<&'d [u8], NotRead>
[src]
fn read_binary(&self) -> Result<&'d [u8], NotRead>
Check if the value is a binary blob, and read it if it is.
fn read_bool(&self) -> Result<bool, NotRead>
[src]
fn read_bool(&self) -> Result<bool, NotRead>
Check if the value is a boolean, and read it if it is.
fn read_encoded_fd<'a>(&'a self) -> Result<EncodedFd<&'a ConvertFd>, NotRead> where
'd: 'a,
[src]
fn read_encoded_fd<'a>(&'a self) -> Result<EncodedFd<&'a ConvertFd>, NotRead> where
'd: 'a,
Check if the value is a file descriptor, and return it if it is. Read more
fn read_float(&self) -> Result<f64, NotRead>
[src]
fn read_float(&self) -> Result<f64, NotRead>
Check if the value is a float, and read it if it is.
fn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
[src]
fn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
Check if the value is an integer, and read it if it is. Read more
fn read_map<'a>(&'a self) -> Result<&'a Map<'d>, NotRead> where
'd: 'a,
[src]
fn read_map<'a>(&'a self) -> Result<&'a Map<'d>, NotRead> where
'd: 'a,
Check if the value is a map, and get access to it if it is.
fn read_seq<'a>(&'a self) -> Result<&'a Seq<'d>, NotRead> where
'd: 'a,
[src]
fn read_seq<'a>(&'a self) -> Result<&'a Seq<'d>, NotRead> where
'd: 'a,
Check if the value is a seq, and get access to it if it is.
fn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
[src]
fn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
Check if the value is a string, and read it if it is. Read more
fn read_timestamp(&self) -> Result<Timespec, NotRead>
[src]
fn read_timestamp(&self) -> Result<Timespec, NotRead>
Check if the value is a timestamp, and read it if it is.