#[repr(transparent)]pub struct Fd(pub i64);
Expand description
A file descriptor in a pod
Tuple Fields§
§0: i64
Trait Implementations§
source§impl<'de> PodDeserialize<'de> for Fd
impl<'de> PodDeserialize<'de> for Fd
source§fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
fn deserialize(
deserializer: PodDeserializer<'de>
) -> Result<(Self, DeserializeSuccess<'de>), DeserializeError<&'de [u8]>>where
Self: Sized,
Deserialize the type by using the provided
PodDeserializer
impl CanonicalFixedSizedPod for Fd
impl Copy for Fd
impl Eq for Fd
impl StructuralPartialEq for Fd
Auto Trait Implementations§
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> FixedSizedPod for Twhere
T: CanonicalFixedSizedPod + Copy,
impl<T> FixedSizedPod for Twhere
T: CanonicalFixedSizedPod + Copy,
§type CanonicalType = T
type CanonicalType = T
The canonical representation of the type of pod that should be serialized to/deserialized from.
source§fn as_canonical_type(&self) -> <T as FixedSizedPod>::CanonicalType
fn as_canonical_type(&self) -> <T as FixedSizedPod>::CanonicalType
Convert
self
to the canonical type.source§fn from_canonical_type(canonical: &<T as FixedSizedPod>::CanonicalType) -> T
fn from_canonical_type(canonical: &<T as FixedSizedPod>::CanonicalType) -> T
Convert the canonical type to
Self
.source§impl<T> PodSerialize for Twhere
T: FixedSizedPod,
impl<T> PodSerialize for Twhere
T: FixedSizedPod,
source§fn serialize<O>(
&self,
serializer: PodSerializer<O>
) -> Result<SerializeSuccess<O>, GenError>
fn serialize<O>( &self, serializer: PodSerializer<O> ) -> Result<SerializeSuccess<O>, GenError>
Serialize the type by using the provided
PodSerializer