pub struct InvalidFd;Expand description
An error indicating that the encoded fd number is invalid: It doesn’t refer to any file descriptor.
Trait Implementations§
Source§impl<'d> Argdata<'d> for InvalidFd
impl<'d> Argdata<'d> for InvalidFd
Source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
The number of bytes that
self.serialize() will write.Source§fn serialize(
&self,
writer: &mut dyn Write,
_: Option<&mut dyn FdMapping>,
) -> Result<()>
fn serialize( &self, writer: &mut dyn Write, _: Option<&mut dyn FdMapping>, ) -> Result<()>
Serialize the argdata to the given writer. Read more
Source§fn 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.
Source§fn 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.
Source§fn 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
Source§fn 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.
Source§fn 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
Source§fn 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.
Source§fn 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.
impl Copy for InvalidFd
impl Eq for InvalidFd
impl StructuralPartialEq for InvalidFd
Auto Trait Implementations§
impl Freeze for InvalidFd
impl RefUnwindSafe for InvalidFd
impl Send for InvalidFd
impl Sync for InvalidFd
impl Unpin for InvalidFd
impl UnwindSafe for InvalidFd
Blanket Implementations§
Source§impl<'d, A> ArgdataExt<'d> for A
impl<'d, A> ArgdataExt<'d> for A
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