Struct zvariant::Fd [−][src]
A RawFd
wrapper.
We wrap the RawFd
type so that we can implement Serialize
and Deserialize
for it.
File descriptors are serialized in a special way and you need to use specific serializer and
deserializer API when file descriptors are or could be involved.
Trait Implementations
impl AsRawFd for Fd
[src]
impl Basic for Fd
[src]
const SIGNATURE_CHAR: char
[src]
const SIGNATURE_STR: &'static str
[src]
const ALIGNMENT: usize
[src]
fn alignment(format: EncodingFormat) -> usize
[src]
impl Clone for Fd
[src]
impl Copy for Fd
[src]
impl Debug for Fd
[src]
impl<'de> Deserialize<'de> for Fd
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for Fd
[src]
impl Eq for Fd
[src]
impl<T> From<&'_ T> for Fd where
T: AsRawFd,
[src]
T: AsRawFd,
impl<'a> From<&'a Fd> for Value<'a>
[src]
impl<'a> From<Fd> for Value<'a>
[src]
impl From<i32> for Fd
[src]
impl Hash for Fd
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Fd> for Fd
[src]
impl Serialize for Fd
[src]
impl StructuralEq for Fd
[src]
impl StructuralPartialEq for Fd
[src]
impl<'a> TryFrom<&'a OwnedValue> for Fd
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(v: &'a OwnedValue) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<&'a Value<'a>> for &'a Fd
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: &'a Value<'a>) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<&'a Value<'a>> for Fd
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: &'a Value<'_>) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<OwnedValue> for Fd
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(v: OwnedValue) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<Value<'a>> for Fd
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: Value<'a>) -> Result<Self, Self::Error>
[src]
impl Type for Fd
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,