InvalidFd

Struct InvalidFd 

Source
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

Source§

fn read<'a>(&'a self) -> Result<Value<'a, 'd>, ReadError>
where 'd: 'a,

Read the value.
Source§

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<()>

Serialize the argdata to the given writer. Read more
Source§

fn get_type(&self) -> Result<Type, ReadError>

Read the type of the value.
Source§

fn read_null(&self) -> Result<(), NotRead>

Check if the value is null.
Source§

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>

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,

Check if the value is a file descriptor, and return it if it is. Read more
Source§

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>

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,

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,

Check if the value is a seq, and get an iterator over it if it is.
Source§

fn read_str_value(&self) -> Result<StrValue<'d>, NotRead>

Check if the value is a string, and read it if it is. Read more
Source§

fn read_timestamp(&self) -> Result<Timespec, NotRead>

Check if the value is a timestamp, and read it if it is.
Source§

impl Clone for InvalidFd

Source§

fn clone(&self) -> InvalidFd

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InvalidFd

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for InvalidFd

Source§

fn eq(&self, other: &InvalidFd) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for InvalidFd

Source§

impl Eq for InvalidFd

Source§

impl StructuralPartialEq for InvalidFd

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'d, A> ArgdataExt<'d> for A
where A: Argdata<'d> + ?Sized,

Source§

fn read_int<T>(&self) -> Result<T, NotRead>
where T: TryFrom<IntValue<'d>>,

Read an integer, and convert it to the requested type if it fits.
Source§

fn read_fd(&self) -> Result<Fd, NotRead>

Read a file descriptor and convert it to an Fd.
Source§

fn read_str(&self) -> Result<&'d str, NotRead>

Read a string, and check if it’s valid UTF-8.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.