pub struct DoorbellHandle(/* private fields */);Expand description
Opaque handle for passing doorbell endpoints between processes.
On Unix, this wraps a raw file descriptor. On Windows, this wraps a named pipe path (see doorbell_windows.rs).
Use Doorbell::create_pair to create a pair, then pass this handle
to the child process and call Doorbell::from_handle to reconstruct.
Implementations§
Source§impl DoorbellHandle
impl DoorbellHandle
Sourcepub unsafe fn from_raw_fd(fd: RawFd) -> Self
pub unsafe fn from_raw_fd(fd: RawFd) -> Self
Create from a raw file descriptor (in child process after spawn).
§Safety
The caller must ensure the FD is valid and not owned by anything else.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DoorbellHandle
impl RefUnwindSafe for DoorbellHandle
impl Send for DoorbellHandle
impl Sync for DoorbellHandle
impl Unpin for DoorbellHandle
impl UnwindSafe for DoorbellHandle
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