pub fn mount(&mut self, mountpoint: impl AsRef<Path>) -> io::Result<()> {
        let mountpoint = mountpoint.as_ref().to_path_buf();

        let c_mountpoint = CString::new(mountpoint.as_os_str().as_bytes())?;
        let res = unsafe { fuse_session_mount(self.se.as_ptr(), c_mountpoint.as_ptr()) };
        if res != 0 {
            return Err(io::Error::last_os_error());
        }

        self.mountpoint = Some(mountpoint);

        Ok(())
    }
/// Mount this session to the specified mountpoint.
Mount this session to the specified mountpoint.
Mount this session to the specified mountpoint .
pub fn mount(&mut self, mountpoint: impl AsRef<Path>) -> io::Result<()> {
        let mountpoint = mountpoint.as_ref().to_path_buf();
        let c_mountpoint = CString::new(mountpoint.as_os_str().as_bytes())?;
        let res = unsafe { fuse_session_mount(self.se.as_ptr(), c_mountpoint.as_ptr()) };
        if res != 0 {
            return Err(io::Error::last_os_error());
        }
        self.mountpoint = Some(mountpoint);
        Ok(())
    }
pub fn mount ( & mut self , mountpoint : impl AsRef < Path > ) -> io :: Result < ( ) > { let mountpoint = mountpoint . as_ref ( ) . to_path_buf ( ) ; let c_mountpoint = CString :: new ( mountpoint . as_os_str ( ) . as_bytes ( ) ) ? ; let res = unsafe { fuse_session_mount ( self . se . as_ptr ( ) , c_mountpoint . as_ptr ( ) ) } ; if res != 0 { return Err ( io :: Error :: last_os_error ( ) ) ; } self . mountpoint = Some ( mountpoint ) ; Ok ( ( ) ) }
Mount this session to the specified mountpoint.
Mount this session to the specified mountpoint .
&mut self
mountpoint
impl AsRef<Path>