pub struct Fd(_);
Expand description
A RawFd
wrapper.
See also OwnedFd
if you need a wrapper that takes ownership of the file.
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
sourceimpl Basic for Fd
impl Basic for Fd
sourceconst SIGNATURE_CHAR: char = 'h'
const SIGNATURE_CHAR: char = 'h'
The type signature, as a character.
sourceconst SIGNATURE_STR: &'static str = "h"
const SIGNATURE_STR: &'static str = "h"
The type signature, as a string.
sourcefn alignment(format: EncodingFormat) -> usize
fn alignment(format: EncodingFormat) -> usize
The required padding alignment for the given format.
sourceimpl<'de> Deserialize<'de> for Fd
impl<'de> Deserialize<'de> for Fd
sourcefn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> From<Fd> for OwnedValue
impl<'a> From<Fd> for OwnedValue
sourceimpl<'a> TryFrom<&'a OwnedValue> for Fd
impl<'a> TryFrom<&'a OwnedValue> for Fd
sourceimpl<'a> TryFrom<OwnedValue> for Fd
impl<'a> TryFrom<OwnedValue> for Fd
impl Copy for Fd
impl Eq for Fd
impl StructuralEq for Fd
impl StructuralPartialEq for Fd
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more