Searched refs:ZbiError (Results 1 – 2 of 2) sorted by relevance
57 type ZbiResult<T> = Result<T, ZbiError>;138 let (hdr, payload) = Ref::<B, ZbiHeader>::new_from_prefix(buffer).ok_or(ZbiError::Error)?; in parse()141 usize::try_from(hdr.length).map_err(|_| ZbiError::PlatformBadLength)?; in parse()143 return Err(ZbiError::TooBig); in parse()170 Err(ZbiError::BadMagic) in is_valid()172 Err(ZbiError::BadVersion) in is_valid()176 Err(ZbiError::BadCrc) in is_valid()226 return Err(ZbiError::TooBig); in new()233 u32::try_from(payload_len).map_err(|_| ZbiError::PlatformBadLength)?; in new()236 Ref::<B, ZbiHeader>::new_from_prefix(buffer).ok_or(ZbiError::Error)?; in new()[all …]
26 use zbi::ZbiError;62 ZbiError(ZbiError),