Lines Matching refs:Result
85 pub fn read(&self, fs: &Arc<FATFileSystem>, buf: &mut [u8], offset: u64) -> Result<usize, i32> { in read()
162 ) -> Result<usize, i32> { in write()
229 fn ensure_len(&mut self, fs: &Arc<FATFileSystem>, offset: u64, len: u64) -> Result<(), i32> { in ensure_len() argument
314 ) -> Result<(), i32> { in zero_range() argument
334 pub fn truncate(&mut self, fs: &Arc<FATFileSystem>, new_size: u64) -> Result<(), i32> { in truncate() argument
403 ) -> Result<Option<(Cluster, u64)>, i32> { in find_free_entries()
498 ) -> Result<FATDirEntry, i32> { in find_entry()
525 pub fn open_file(&self, name: &str, fs: Arc<FATFileSystem>) -> Result<FATFile, i32> { in open_file()
531 pub fn open_dir(&self, name: &str, fs: Arc<FATFileSystem>) -> Result<FATDir, i32> { in open_dir()
540 pub fn create_file(&self, name: &str, fs: &Arc<FATFileSystem>) -> Result<FATFile, i32> { in create_file()
541 let r: Result<FATDirEntryOrShortName, i32> = in create_file()
558 let x: Result<FATFile, i32> = self in create_file()
579 pub fn create_dir(&self, name: &str, fs: &Arc<FATFileSystem>) -> Result<FATDir, i32> { in create_dir()
580 let r: Result<FATDirEntryOrShortName, i32> = in create_dir()
665 ) -> Result<FATDirEntryOrShortName, i32> { in check_existence()
669 let e: Result<FATDirEntry, i32> = in check_existence()
711 ) -> Result<FATDirEntry, i32> {
780 ) -> Result<(), i32> { in remove() argument
808 ) -> Result<(), i32> { in remove_dir_entries() argument
827 pub fn get_dir_entry(&self, fs: Arc<FATFileSystem>, name: &str) -> Result<FATDirEntry, i32> { in get_dir_entry()
843 ) -> Result<FATDirEntry, i32> { in rename()
995 fn insert_name(&mut self, name_part: &[u16]) -> Result<(), i32> { in insert_name() argument
1007 pub fn copy_name_to_slice(&self, dst: &mut [u16]) -> Result<(), i32> { in copy_name_to_slice() argument
1029 pub fn validate_long_name(mut name: &str) -> Result<(), i32> { in validate_long_name() argument
1066 pub fn flush(&self, fs: Arc<FATFileSystem>, disk_bytes_offset: u64) -> Result<(), i32> { in flush() argument
1276 pub fn flush(&self, fs: &Arc<FATFileSystem>, disk_bytes_offset: u64) -> Result<(), i32> { in flush() argument
1392 fn get_dir_entry(&mut self) -> Result<(Cluster, u64, Option<FATDirEntry>), i32> { in get_dir_entry()
1500 let dir_entry: Result<FATDirEntry, i32> = FATDirEntry::new( in get_dir_entry()
1563 ) -> Result<Self, i32> { in new()
1751 pub fn to_file(&self) -> Result<FATFile, i32> { in to_file()
1765 pub fn to_dir(&self) -> Result<FATDir, i32> { in to_dir()
1962 let checksum_result: Result<
1963 Result<u16, core::num::ParseIntError>,
1976 pub fn generate(&self) -> Result<[u8; 11], i32> { in generate()
2099 fn process(&mut self, longname_dentry: LongDirEntry) -> Result<(), i32> { in process() argument
2331 ) -> Result<FATRawDirEntry, i32> { in get_raw_dir_entry()