pub struct IpcFileHandle { /* private fields */ }Expand description
File handle that can be transferred to another process.
§File
This type can be converted from and to std::fs::File. This type does not
implement IO traits, it must be converted to read/write. The file handle is only closed on drop
if it was not converted back.
§Serialization
This type implements serialization only for compatibility with IPC channel, attempting to
serialize it outside of with_ipc_serialization context will return an error. On IPC serialization
the handle is duplicated for the target process.
Implementations§
Trait Implementations§
Source§impl Debug for IpcFileHandle
impl Debug for IpcFileHandle
Source§impl<'de> Deserialize<'de> for IpcFileHandle
Available on ipc only.
impl<'de> Deserialize<'de> for IpcFileHandle
Available on
ipc only.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 Drop for IpcFileHandle
Available on ipc only.
impl Drop for IpcFileHandle
Available on
ipc only.Source§impl From<File> for IpcFileHandle
Available on ipc only.
impl From<File> for IpcFileHandle
Available on
ipc only.Source§impl From<IpcFileHandle> for File
Available on ipc only.
impl From<IpcFileHandle> for File
Available on
ipc only.Source§fn from(f: IpcFileHandle) -> Self
fn from(f: IpcFileHandle) -> Self
Converts to this type from the input type.
Source§impl From<IpcFileHandle> for File
Available on ipc only.
impl From<IpcFileHandle> for File
Available on
ipc only.Source§fn from(f: IpcFileHandle) -> Self
fn from(f: IpcFileHandle) -> Self
Converts to this type from the input type.
Source§impl From<IpcFileHandle> for IpcReadHandle
impl From<IpcFileHandle> for IpcReadHandle
Source§fn from(f: IpcFileHandle) -> Self
fn from(f: IpcFileHandle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IpcFileHandle
impl RefUnwindSafe for IpcFileHandle
impl Send for IpcFileHandle
impl Sync for IpcFileHandle
impl Unpin for IpcFileHandle
impl UnsafeUnpin for IpcFileHandle
impl UnwindSafe for IpcFileHandle
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more