pub fn validate_spu_for_registered(&self, id: &SpuId) -> bool {
        for (_, spu) in (self.inner_store().read()).iter() {
            if spu.id() == id && spu.status.is_offline() {
                return true;
            }
        }
        false
    }
// check if spu can be registered
check if spu can be registered
check if spu can be registered
pub fn validate_spu_for_registered(&self, id: &SpuId) -> bool {
        for (_, spu) in (self.inner_store().read()).iter() {
            if spu.id() == id && spu.status.is_offline() {
                return true;
            }
        }
        false
    }
pub fn validate_spu_for_registered ( & self , id : & SpuId ) -> bool { for ( _ , spu ) in ( self . inner_store ( ) . read ( ) ) . iter ( ) { if spu . id ( ) == id && spu . status . is_offline ( ) { return true ; } } false }
check if spu can be registered
check if spu can be registered
&self
id
&SpuId
&self
id
&SpuId