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§
source§impl Basic for Fd
impl Basic for Fd
source§const SIGNATURE_CHAR: char = 'h'
const SIGNATURE_CHAR: char = 'h'
The type signature, as a character.
source§const SIGNATURE_STR: &'static str = _
const SIGNATURE_STR: &'static str = _
The type signature, as a string.
source§fn alignment(format: EncodingFormat) -> usize
fn alignment(format: EncodingFormat) -> usize
The required padding alignment for the given format.
source§impl<'de> Deserialize<'de> for Fd
impl<'de> Deserialize<'de> for Fd
source§fn 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