Lines Matching refs:Error
36 pub enum Error { enum
44 impl From<Option<&'static str>> for Error { implementation
46 Error::OpsError(val) in from()
106 type Error = Error; typedef
108 fn try_from(val: c_uint) -> core::result::Result<SlotIndex, Self::Error> { in try_from() argument
113 _ => Err(Error::InvalidData), in try_from()
132 pub type AbrResult<T> = Result<T, Error>;
263 return Err(Error::BadMagic); in deserialize()
267 return Err(Error::BadChecksum); in deserialize()
271 return Err(Error::UnsupportedVersion); in deserialize()
378 Err(Error::OpsError(e)) => { in load_metadata()
382 Err(Error::UnsupportedVersion) => { in load_metadata()
385 return Err(Error::UnsupportedVersion); in load_metadata()
491 return Err(Error::InvalidData); in mark_slot_active()
529 return Err(Error::InvalidData); in mark_slot_unbootable()
543 return Err(Error::InvalidData); in mark_slot_successful()
549 return Err(Error::InvalidData); in mark_slot_successful()