fn new(
        owner: EmuFsSharedWeakPtr,
        fd: ScopedFd,
        orig_path: &OsStr,
        real_path: &OsStr,
        device: dev_t,
        inode: ino_t,
        file_size: u64,
    ) -> EmuFileSharedPtr {
        let file = EmuFile {
            orig_path: orig_path.to_owned(),
            tmp_path: real_path.to_owned(),
            file: fd,
            owner,
            size_: file_size,
            device_: device,
            inode_: inode,
            weak_self: Weak::new(),
        };
        let file_shared = Rc::new(RefCell::new(file));
        file_shared.borrow_mut().weak_self = Rc::downgrade(&file_shared);
        file_shared
    }
/// Note this is NOT pub.
/// Also note the move for ScopedFd.
Note this is NOT pub.
Also note the move for ScopedFd.
Note this is NOT pub . Also note the move for ScopedFd .
fn new(
        owner: EmuFsSharedWeakPtr,
        fd: ScopedFd,
        orig_path: &OsStr,
        real_path: &OsStr,
        device: dev_t,
        inode: ino_t,
        file_size: u64,
    ) -> EmuFileSharedPtr {
        let file = EmuFile {
            orig_path: orig_path.to_owned(),
            tmp_path: real_path.to_owned(),
            file: fd,
            owner,
            size_: file_size,
            device_: device,
            inode_: inode,
            weak_self: Weak::new(),
        };
        let file_shared = Rc::new(RefCell::new(file));
        file_shared.borrow_mut().weak_self = Rc::downgrade(&file_shared);
        file_shared
    }
fn new ( owner : EmuFsSharedWeakPtr , fd : ScopedFd , orig_path : & OsStr , real_path : & OsStr , device : dev_t , inode : ino_t , file_size : u64 , ) -> EmuFileSharedPtr { let file = EmuFile { orig_path : orig_path . to_owned ( ) , tmp_path : real_path . to_owned ( ) , file : fd , owner , size_ : file_size , device_ : device , inode_ : inode , weak_self : Weak :: new ( ) , } ; let file_shared = Rc :: new ( RefCell :: new ( file ) ) ; file_shared . borrow_mut ( ) . weak_self = Rc :: downgrade ( & file_shared ) ; file_shared }
Note this is NOT pub.
Note this is NOT pub .
owner
EmuFsSharedWeakPtr
fd
ScopedFd
orig_path
&OsStr
real_path
&OsStr
device
dev_t
inode
ino_t
file_size
u64