pub struct Fd(/* private fields */);
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 = "h"
const SIGNATURE_STR: &'static str = "h"
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
source§impl<'a> From<Fd> for OwnedValue
impl<'a> From<Fd> for OwnedValue
source§impl<'a> TryFrom<&'a OwnedValue> for Fd
impl<'a> TryFrom<&'a OwnedValue> for Fd
source§impl TryFrom<OwnedValue> for Fd
impl TryFrom<OwnedValue> for Fd
impl Copy for Fd
impl Eq for Fd
impl StructuralPartialEq for Fd
Auto Trait Implementations§
impl Freeze for Fd
impl RefUnwindSafe for Fd
impl Send for Fd
impl Sync for Fd
impl Unpin for Fd
impl UnwindSafe for Fd
Blanket Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
source§fn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
source§impl<T> DynamicType for T
impl<T> DynamicType for T
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more