pub struct Dup { /* private fields */ }Implementations§
Source§impl Dup
impl Dup
pub fn dup(old_fd: c_int) -> Result<c_int, DupError>
pub fn dup2(old_fd: c_int, new_fd: c_int) -> Result<c_int, DupError>
pub fn transform(fd: c_int) -> Dup
pub fn close_to(&self, fd: c_int) -> Result<c_int, DupError>
pub fn dup2s<'a, 'b>( old_fds: &'a [c_int], new_fds: &'b [c_int], ) -> Result<(), DupError>
Auto Trait Implementations§
impl Freeze for Dup
impl RefUnwindSafe for Dup
impl Send for Dup
impl Sync for Dup
impl Unpin for Dup
impl UnwindSafe for Dup
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