# Function client::member::moved

> Checks a `community.descriptor_updated` event against the client's stored state and says whether the community moved to another host. `chain` is the rotation chain the client holds

`zaun_community_protocol::client::member::moved` · Function

```rust
pub fn moved(community_id: &CommunityId, event: &DescriptorUpdated, chain: &[SignedRootRotation], accepted: &AcceptedState, current_host: HostId, now_ms: u64) -> Result<Option<Moved>, ValidityError>
```

Checks a `community.descriptor_updated` event against the client's stored state and says whether the
community moved to another host. `chain` is the rotation chain the client holds; a
rotation embedded in the new descriptor extends it, as at the host.

`Ok(None)`: valid, and still delegated to `current_host` (a descriptor edit).

# Errors
`ValidityError` for a pair that is not valid, or older than `accepted`. A descriptor
without a delegation (suspension) is `ValidityError::NoDelegation`.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/client/member/moved/fn.moved.html)
