pub struct Fd(pub c_int);
Expand description
A file descriptor of the current process.
Tuple Fields
0: c_int
Trait Implementations
sourceimpl<'d> Argdata<'d> for Fd
impl<'d> Argdata<'d> for Fd
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
The number of bytes that
self.serialize()
will write.sourcefn serialize(
&self,
writer: &mut dyn Write,
fd_map: Option<&mut dyn FdMapping>
) -> Result<()>
fn serialize(
&self,
writer: &mut dyn Write,
fd_map: Option<&mut dyn FdMapping>
) -> Result<()>
Serialize the argdata to the given writer. Read more
sourcefn read_binary(&self) -> Result<&'d [u8], NotRead>
fn read_binary(&self) -> Result<&'d [u8], NotRead>
Check if the value is a binary blob, and read it if it is.
sourcefn read_bool(&self) -> Result<bool, NotRead>
fn read_bool(&self) -> Result<bool, NotRead>
Check if the value is a boolean, and read it if it is.
sourcefn read_encoded_fd<'a>(
&'a self
) -> Result<EncodedFd<&'a dyn ConvertFd>, NotRead>where
'd: 'a,
fn read_encoded_fd<'a>(
&'a self
) -> Result<EncodedFd<&'a dyn ConvertFd>, NotRead>where
'd: 'a,
Check if the value is a file descriptor, and return it if it is. Read more
sourcefn read_float(&self) -> Result<f64, NotRead>
fn read_float(&self) -> Result<f64, NotRead>
Check if the value is a float, and read it if it is.
sourcefn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
fn read_int_value(&self) -> Result<IntValue<'d>, NotRead>
Check if the value is an integer, and read it if it is. Read more
sourcefn read_map<'a>(&'a self) -> Result<MapIterator<'a, 'd>, NotRead>where
'd: 'a,
fn read_map<'a>(&'a self) -> Result<MapIterator<'a, 'd>, NotRead>where
'd: 'a,
Check if the value is a map, and get an iterator over it if it is.
sourcefn read_seq<'a>(&'a self) -> Result<SeqIterator<'a, 'd>, NotRead>where
'd: 'a,
fn read_seq<'a>(&'a self) -> Result<SeqIterator<'a, 'd>, NotRead>where
'd: 'a,
Check if the value is a seq, and get an iterator over it if it is.
sourcefn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
fn read_str_value(&self) -> Result<StrValue<'d>, NotRead>
Check if the value is a string, and read it if it is. Read more
sourcefn read_timestamp(&self) -> Result<Timespec, NotRead>
fn read_timestamp(&self) -> Result<Timespec, NotRead>
Check if the value is a timestamp, and read it if it is.
impl Copy for Fd
impl Eq for Fd
impl StructuralEq for Fd
impl StructuralPartialEq for Fd
Auto Trait Implementations
Blanket Implementations
sourceimpl<'d, A> ArgdataExt<'d> for Awhere
A: Argdata<'d> + ?Sized,
impl<'d, A> ArgdataExt<'d> for Awhere
A: Argdata<'d> + ?Sized,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more