pub enum RefStatus {
Ok,
Mismatch {
expected: String,
actual: String,
},
Missing,
Unsupported,
}Expand description
单条 Reference 的校验状态。
Variants§
Ok
重新计算的摘要与 CheckValue 一致。
Mismatch
摘要不一致,文件内容已被篡改。
Missing
被引用的文件在包内不存在。
Unsupported
摘要算法不受支持,无法判定。
Trait Implementations§
impl Eq for RefStatus
impl StructuralPartialEq for RefStatus
Auto Trait Implementations§
impl Freeze for RefStatus
impl RefUnwindSafe for RefStatus
impl Send for RefStatus
impl Sync for RefStatus
impl Unpin for RefStatus
impl UnsafeUnpin for RefStatus
impl UnwindSafe for RefStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.