Lines Matching defs:CommandError
61 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
272 fn u64_mul<L: TryInto<u64>, R: TryInto<u64>>(lhs: L, rhs: R) -> Result<u64, CommandError> { in u64_mul() argument