Home
last modified time | relevance | path

Searched defs:CommandError (Results 1 – 4 of 4) sorted by relevance

/bootable/libbootloader/gbl/libgbl/src/fastboot/
Dvars.rs34 ) -> Result<Option<usize>, CommandError>; in get() argument
40 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_all() argument
52 ) -> Result<Option<usize>, CommandError> { in get() argument
59 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_all() argument
80 ) -> Result<Option<usize>, CommandError> { in get() argument
92 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_all() argument
137 ) -> Result<Option<usize>, CommandError> { in get() argument
156 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_all() argument
Dsparse.rs61 pub fn is_sparse_image(sparse_img: &[u8]) -> Result<SparseHeader, CommandError> { in is_sparse_image() argument
138 pub fn write_sparse_image<F>(sparse_img: &mut [u8], mut write: F) -> Result<u64, CommandError> in write_sparse_image() argument
211 fn get(&mut self, val: u32, size: u64) -> Result<&mut [u8], CommandError> { in get() argument
231 ) -> Result<&mut [u8], CommandError> { in get_mut() argument
240 ) -> Result<&[u8], CommandError> { in get() argument
245 fn copy_from<T: AsBytes + FromBytes + Default>(bytes: &[u8]) -> Result<T, CommandError> { in copy_from() argument
252 fn to_usize<T: TryInto<usize>>(val: T) -> Result<usize, CommandError> { in to_usize() argument
257 fn usize_add<L: TryInto<usize>, R: TryInto<usize>>(lhs: L, rhs: R) -> Result<usize, CommandError> { in usize_add() argument
262 fn to_u64<T: TryInto<u64>>(val: T) -> Result<u64, CommandError> { in to_u64() argument
267 fn u64_add<L: TryInto<u64>, R: TryInto<u64>>(lhs: L, rhs: R) -> Result<u64, CommandError> { in u64_add() argument
[all …]
Dmod.rs59 fn check_range(&self, rw_off: u64, rw_size: usize) -> Result<u64, CommandError> { in check_range() argument
67 pub fn read(&mut self, offset: u64, out: &mut [u8]) -> Result<(), CommandError> { in read() argument
77 pub fn write(&mut self, offset: u64, data: &mut [u8]) -> Result<(), CommandError> { in write() argument
127 ) -> Result<GblFbPartition, CommandError> { in parse_partition() argument
180 ) -> Result<usize, CommandError> { in get_var() argument
189 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_var_all() argument
195 fn flash(&mut self, part: &str, utils: &mut FastbootUtils) -> Result<(), CommandError> { in flash() argument
211 ) -> Result<(), CommandError> { in upload() argument
222 ) -> Result<(), CommandError> { in fetch() argument
244 ) -> Result<&'a [u8], CommandError> { in oem() argument
[all …]
/bootable/libbootloader/gbl/libfastboot/src/
Dlib.rs177 pub struct CommandError(FormattedBytes<[u8; COMMAND_ERROR_LENGTH]>); struct
179 impl CommandError { impl
186 impl Debug for CommandError { implementation
192 impl<T: Display> From<T> for CommandError { implementation
223 ) -> Result<usize, CommandError>; in get_var() argument
232 ) -> Result<&'s str, CommandError> { in get_var_as_str() argument
274 f: &mut dyn FnMut(&str, &[&str], &str) -> Result<(), CommandError>, in get_var_all() argument
284 fn flash(&mut self, part: &str, utils: &mut FastbootUtils) -> Result<(), CommandError>; in flash() argument
316 ) -> Result<(), CommandError>; in upload() argument
334 ) -> Result<(), CommandError>; in fetch() argument
[all …]