Home
last modified time | relevance | path

Searched defs:Error (Results 1 – 24 of 24) sorted by relevance

/bootable/libbootloader/gbl/efi/src/
Derror.rs18 pub fn recv_to_unified(err: RecvError) -> Error { in recv_to_unified()
25 pub fn send_to_unified(err: SendError) -> Error { in send_to_unified()
31 pub fn listen_to_unified(err: ListenError) -> Error { in listen_to_unified()
Defi_blocks.rs67 ) -> Result<(), Error> { in read_blocks() argument
75 async fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<(), Error> { in write_blocks() argument
90 pub fn find_block_devices(efi_entry: &EfiEntry) -> Result<Vec<EfiGblDisk<'_>>, Error> { in find_block_devices() argument
Dops.rs1172 protocol_lookup_error: Option<Error>, in test_fixup_os_commandline()
1331 protocol_lookup_error: Option<Error>, in test_fixup_bootconfig()
1332 protocol_result_error: Option<Error>, in test_fixup_bootconfig()
1575 protocol_lookup_error: Option<Error>, in test_fixup_device_tree()
/bootable/libbootloader/gbl/libgbl/src/
Dops.rs85 fn should_stop_in_fastboot(&mut self) -> Result<bool, Error>; in should_stop_in_fastboot() argument
99 fn reboot_recovery(&mut self) -> Result<impl FnOnce() + '_, Error> { in reboot_recovery() argument
111 fn reboot_bootloader(&mut self) -> Result<impl FnOnce() + '_, Error> { in reboot_bootloader() argument
141 ) -> Result<(), Error> { in read_from_partition() argument
151 ) -> Result<(), Error> { in read_from_partition_sync() argument
161 ) -> Result<(), Error> { in write_to_partition() argument
171 ) -> Result<(), Error> { in write_to_partition_sync() argument
176 fn partition_size(&mut self, part: &str) -> Result<Option<u64>, Error> { in partition_size() argument
185 fn expected_os(&mut self) -> Result<Option<Os>, Error>; in expected_os() argument
188 fn expected_os_is_fuchsia(&mut self) -> Result<bool, Error> { in expected_os_is_fuchsia() argument
[all …]
Dpartition.rs38 fn new(name: &CStr) -> Result<Self, Error> { in new() argument
63 pub fn size(&self) -> Result<u64, Error> { in size() argument
69 pub fn name(&self) -> Result<&str, Error> { in name() argument
77 pub fn absolute_range(&self) -> Result<(u64, u64), Error> { in absolute_range() argument
137 pub fn new_raw(mut disk: Disk<B, S>, name: &CStr) -> Result<Self, Error> { in new_raw() argument
160 fn get_disk(&self) -> Result<RefMut<'_, Disk<B, S>>, Error> { in get_disk() argument
167 pub fn partition_io(&self, part: Option<&str>) -> Result<PartitionIo<'_, B>, Error> { in partition_io() argument
176 pub fn find_partition(&self, part: Option<&str>) -> Result<Partition, Error> { in find_partition() argument
191 pub fn num_partitions(&self) -> Result<usize, Error> { in num_partitions() argument
199 pub fn get_partition_by_idx(&self, idx: usize) -> Result<Partition, Error> { in get_partition_by_idx() argument
[all …]
Dslots.rs86 type Error = Error; typedef
88 fn try_from(value: usize) -> Result<Self, Self::Error> { in try_from() argument
94 type Error = Error; typedef
96 fn try_from(value: u32) -> Result<Self, Self::Error> { in try_from() argument
274 fn get_slot_by_number(&self, number: usize) -> Result<Slot, Error>; in get_slot_by_number() argument
330 fn get_boot_target(&self) -> Result<BootTarget, Error>; in get_boot_target() argument
335 fn get_slot_last_set_active(&self) -> Result<Slot, Error> { in get_slot_last_set_active() argument
355 fn mark_boot_attempt(&mut self) -> Result<BootToken, Error>; in mark_boot_attempt() argument
362 fn set_active_slot(&mut self, slot_suffix: Suffix) -> Result<(), Error>; in set_active_slot() argument
369 ) -> Result<(), Error>; in set_slot_unbootable() argument
[all …]
Dconstants.rs100 type Error = Error; typedef
102 fn try_from(value: &str) -> Result<Self, Self::Error> { in try_from() argument
Dlib.rs141 persist: &'a mut dyn FnMut(&mut [u8]) -> core::result::Result<(), Error>, in load_slot_interface() argument
/bootable/libbootloader/gbl/libbootimg/src/
Dlib.rs27 impl From<ImageError> for Error { implementation
28 fn from(err: ImageError) -> Error { in from()
/bootable/libbootloader/gbl/liberror/src/
Dlib.rs133 pub enum Error { enum
258 impl From<Option<&'static str>> for Error { implementation
264 impl From<&'static str> for Error { implementation
270 impl From<safemath::Error> for Error { implementation
276 impl From<core::num::TryFromIntError> for Error { implementation
283 impl From<FromBytesUntilNulError> for Error { implementation
289 impl From<FromBytesWithNulError> for Error { implementation
295 impl From<Utf8Error> for Error { implementation
301 impl core::fmt::Display for Error { implementation
307 impl From<core::fmt::Error> for Error { implementation
/bootable/libbootloader/gbl/libgbl/src/fastboot/
Dsparse.rs69 pub fn is_sparse_image(sparse_img: &[u8]) -> Result<SparseHeader, Error> { in is_sparse_image() argument
138 async fn write(&mut self, off: u64, data: &mut [u8]) -> Result<(), Error>; in write() argument
155 ) -> Result<u64, Error> { in write_sparse_image() argument
227 fn get(&mut self, val: u32, size: u64) -> Result<&mut [u8], Error> { in get() argument
247 ) -> Result<&mut [u8], Error> { in get_mut() argument
256 ) -> Result<&[u8], Error> { in get() argument
261 fn copy_from<T: IntoBytes + FromBytes + Default>(bytes: &[u8]) -> Result<T, Error> { in copy_from() argument
271 fn to_usize<T: TryInto<usize>>(val: T) -> Result<usize, Error> { in to_usize() argument
276 fn usize_add<L: TryInto<usize>, R: TryInto<usize>>(lhs: L, rhs: R) -> Result<usize, Error> { in usize_add() argument
281 fn to_u64<T: TryInto<u64>>(val: T) -> Result<u64, Error> { in to_u64() argument
[all …]
Dmod.rs78 async fn run(self) -> Result<(), Error> { in run() argument
101 fn set_context(&mut self, mut f: impl FnMut(&mut dyn Write) -> Result<(), core::fmt::Error>) { in set_context()
106 async fn run_checked(self) -> Result<(), Error> { in run_checked() argument
920 pub fn fuchsia_fastboot_mdns_packet(node_name: &str, ipv6_addr: &[u8]) -> Result<[u8; 140], Error> { in fuchsia_fastboot_mdns_packet() argument
997 ) -> Result<(), Error> { in send_formatted_info() argument
1007 async fn send_formatted_okay<F: FnOnce(&mut dyn Write)>(self, _: F) -> Result<(), Error> { in send_formatted_okay() argument
1115 ) -> Result<(), Error> { in send_var_info() argument
1180 off: impl TryInto<u64, Error = EOff>, in fetch() argument
1849 async fn receive_packet(&mut self, out: &mut [u8]) -> Result<usize, Error> { in receive_packet() argument
1856 async fn send_packet(&mut self, packet: &[u8]) -> Result<(), Error> { in send_packet() argument
[all …]
/bootable/libbootloader/gbl/libstorage/src/
Dram_block.rs63 ) -> Result<usize, Error> { in checks() argument
87 ) -> Result<(), Error> { in read_blocks() argument
93 async fn write_blocks(&mut self, blk_offset: u64, data: &mut [u8]) -> Result<(), Error> { in write_blocks() argument
Dgpt.rs907 fn fmt(&self, f: &mut Formatter<'_>) -> core::result::Result<(), core::fmt::Error> { in fmt()
1191 expect_primary_err: Error, in test_gpt_sync_restore()
1192 expect_secondary_err: Error, in test_gpt_sync_restore()
/bootable/libbootloader/gbl/libgbl/src/android_boot/
Dload.rs46 fn new(slot: u8) -> Result<Self, Error> { in new() argument
69 fn slotted_part(part: &str, slot: u8) -> Result<ArrayString<RAW_PARTITION_NAME_LEN>, Error> { in slotted_part() argument
81 ) -> Result<Range<usize>, Error> { in page_aligned_range() argument
108 fn new(buffer: &'a [u8]) -> Result<Self, Error> { in new() argument
151 fn new(buffer: &[u8]) -> Result<Self, Error> { in new() argument
176 fn cmdline(buffer: &[u8]) -> Result<&str, Error> { in cmdline() argument
199 fn new(buffer: &[u8]) -> Result<Self, Error> { in new() argument
229 fn cmdline(buffer: &[u8]) -> Result<&str, Error> { in cmdline() argument
346 add_additional_bootconfig: impl FnOnce(&mut BootConfigBuilder) -> Result<(), Error>, in load_verify_v2_and_lower() argument
460 add_additional_bootconfig: impl FnOnce(&mut BootConfigBuilder) -> Result<(), Error>, in load_verify_v3_and_v4() argument
[all …]
Dmod.rs50 fn cstr_bytes_to_str(data: &[u8]) -> core::result::Result<&str, Error> { in cstr_bytes_to_str() argument
/bootable/libbootloader/gbl/libgbl/src/slots/
Dfuchsia.rs122 fn validate<B: SplitByteSlice>(buffer: B) -> Result<Ref<B, AbrData>, Error> { in validate() argument
164 fn get_slot_by_number(&self, number: usize) -> Result<Slot, Error> { in get_slot_by_number() argument
181 fn get_boot_target(&self) -> Result<BootTarget, Error> { in get_boot_target() argument
197 ) -> Result<(), Error> { in set_slot_unbootable() argument
212 fn mark_boot_attempt(&mut self) -> Result<BootToken, Error> { in mark_boot_attempt() argument
248 fn set_active_slot(&mut self, slot_suffix: Suffix) -> Result<(), Error> { in set_active_slot() argument
266 fn set_oneshot_status(&mut self, oneshot: OneShot) -> Result<(), Error> { in set_oneshot_status() argument
286 fn write_back(&mut self, persist: &mut dyn FnMut(&mut [u8]) -> Result<(), Error>) { in write_back() argument
292 fn get_index_and_slot_with_suffix(&self, slot_suffix: Suffix) -> Result<(usize, Slot), Error> { in get_index_and_slot_with_suffix() argument
Dandroid.rs247 fn validate<B: SplitByteSlice>(buffer: B) -> Result<Ref<B, Self>, Error> { in validate() argument
271 fn get_slot_by_number(&self, number: usize) -> Result<Slot, Error> { in get_slot_by_number() argument
295 fn get_boot_target(&self) -> Result<BootTarget, Error> { in get_boot_target() argument
311 ) -> Result<(), Error> { in set_slot_unbootable() argument
328 fn mark_boot_attempt(&mut self) -> Result<BootToken, Error> { in mark_boot_attempt() argument
358 fn set_active_slot(&mut self, slot_suffix: Suffix) -> Result<(), Error> { in set_active_slot() argument
379 fn set_oneshot_status(&mut self, _: OneShot) -> Result<(), Error> { in set_oneshot_status() argument
385 fn write_back(&mut self, persist: &mut dyn FnMut(&mut [u8]) -> Result<(), Error>) { in write_back() argument
Dpartition.rs38 fn validate<B: SplitByteSlice>(buffer: B) -> Result<Ref<B, Self>, Error>; in validate() argument
117 pub fn sync_to_disk(&mut self, persist: &mut dyn FnMut(&mut [u8]) -> Result<(), Error>) { in sync_to_disk() argument
/bootable/libbootloader/gbl/libsafemath/src/
Dlib.rs151 pub struct Error(&'static Location<'static>); struct
153 impl From<&'static Location<'static>> for Error { implementation
165 impl From<core::num::TryFromIntError> for Error { implementation
185 impl fmt::Display for Error { implementation
/bootable/libbootloader/gbl/libefi/src/protocol/
Dgbl_efi_ab_slot.rs61 type Error = liberror::Error; typedef
/bootable/libbootloader/gbl/libabr/src/
Dlib.rs138 type Error = Error; typedef
152 type Error = Error; typedef
/bootable/libbootloader/gbl/libfastboot/src/
Dlib.rs655 async fn initiate_upload(self, _: u64) -> Result<impl Uploader, Error> { in initiate_upload() argument
664 ) -> Result<(), Error> { in send_formatted_info() argument
674 async fn upload(&mut self, data: &[u8]) -> Result<(), Error> { in upload() argument
/bootable/libbootloader/gbl/libgbl/src/gbl_avb/
Dops.rs188 fn split_slotted(partition: &str) -> Result<(&str, SlotIndex), Error> { in split_slotted() argument