Lines Matching refs:Error
41 pub enum Error { enum
43 FailedIo(gpt::Error),
61 VirtIOBlkCreationFailed(virtio_drivers::Error),
63 BoringSslFailed(bssl_avf::Error),
66 impl fmt::Display for Error { implementation
88 impl From<bssl_avf::Error> for Error { implementation
89 fn from(e: bssl_avf::Error) -> Self { in from()
94 pub type Result<T> = core::result::Result<T, Error>;
119 return Err(Error::UnsupportedEntrySize(payload_size)); in get_recorded_entry()
122 instance_img.read_block(payload_index, &mut blk).map_err(Error::FailedIo)?; in get_recorded_entry()
151 instance_img.write_block(payload_index, &blk).map_err(Error::FailedIo)?; in record_instance_entry()
156 instance_img.write_block(header_index, &blk).map_err(Error::FailedIo)?; in record_instance_entry()
186 VirtIOBlk::<HalImpl>::new(transport).map_err(Error::VirtIOBlkCreationFailed)?; in find_instance_img()
194 Err(Error::MissingInstanceImage) in find_instance_img()
212 let header_index = indices.next().ok_or(Error::MissingInstanceImageHeader)?; in locate_entry()
213 partition.read_block(header_index, &mut blk).map_err(Error::FailedIo)?; in locate_entry()
217 return Err(Error::InvalidInstanceImageHeader); in locate_entry()
221 partition.read_block(header_index, &mut blk).map_err(Error::FailedIo)?; in locate_entry()
239 Err(Error::InstanceImageFull) in locate_entry()