pub struct FdGuard { /* private fields */ }Expand description
将系统 fd 包装为 RAII 守卫,确保 close(2) 被调用。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FdGuard
impl RefUnwindSafe for FdGuard
impl Send for FdGuard
impl Sync for FdGuard
impl Unpin for FdGuard
impl UnsafeUnpin for FdGuard
impl UnwindSafe for FdGuard
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