pub struct Handle<F>(/* private fields */);
Expand description
Can transfer a unix file handle across processes.
The basic requirement is that you have an object that can be converted into a raw file handle and back. This for instance is the case for regular file objects, sockets and many more things.
Once the handle has been serialized the handle no longer lets you extract the value contained in it.
For customizing the serialization of libraries the
HandleRef
object should be used instead.
Implementations§
Trait Implementations§
Source§impl<'de, F: FromRawFd + IntoRawFd> Deserialize<'de> for Handle<F>
impl<'de, F: FromRawFd + IntoRawFd> Deserialize<'de> for Handle<F>
Source§fn deserialize<D>(deserializer: D) -> Result<Handle<F>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Handle<F>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<F> !Freeze for Handle<F>
impl<F> RefUnwindSafe for Handle<F>
impl<F> Send for Handle<F>where
F: Send,
impl<F> Sync for Handle<F>where
F: Send,
impl<F> Unpin for Handle<F>where
F: Unpin,
impl<F> UnwindSafe for Handle<F>
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