[−][src]Struct unix_ipc::Handle
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.
Methods
impl<F: FromRawFd + IntoRawFd> Handle<F>
[src]
pub fn new(f: F) -> Self
[src]
Wraps the value in a handle.
pub fn into_inner(self) -> F
[src]
Extracts the internal value.
Trait Implementations
impl<'de, F: FromRawFd + IntoRawFd> Deserialize<'de> for Handle<F>
[src]
fn deserialize<D>(deserializer: D) -> Result<Handle<F>, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl<F: FromRawFd + IntoRawFd> From<F> for Handle<F>
[src]
impl<F: FromRawFd + IntoRawFd> Serialize for Handle<F>
[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for Handle<F>
impl<F> Send for Handle<F> where
F: Send,
F: Send,
impl<F> Sync for Handle<F> where
F: Send,
F: Send,
impl<F> Unpin for Handle<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Handle<F>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,