# Struct client::CursorTable

> The member cursor and one cursor per channel.

`zaun_community_protocol::client::CursorTable` · Struct

```rust
pub struct CursorTable { … }
```

The member cursor and one cursor per channel.

SPEC: the protocol does not say where a channel's cursor starts when the client has none (a new
channel, or one it never listed). It starts at 0, so a first event above 1 is a gap and
`sync.resume` reports the channel's floor, which then raises the cursor.

## Methods

### `resume_bodies`

```rust
pub fn resume_bodies(&self) -> Vec<Resume>
```

`sync.resume` bodies for every tracked stream, at most 100 channels each.

### `member`

```rust
pub const fn member(&self) -> u64
```

The member-stream cursor.

### `channel`

```rust
pub fn channel(&self, id: &ChannelId) -> Option<u64>
```

A channel's cursor, if tracked.

### `set_member`

```rust
pub fn set_member(&mut self, seq: u64)
```

Sets the member cursor exactly (after a snapshot, the protocol), dropping held events.

### `set_channel`

```rust
pub fn set_channel(&mut self, id: ChannelId, seq: u64)
```

Sets a channel cursor exactly (after paging history), dropping held events.

### `remove_channel`

```rust
pub fn remove_channel(&mut self, id: &ChannelId)
```

Stops tracking a channel (lost access, `sync.resume.hidden`).

### `seed`

```rust
pub fn seed(&mut self, cursors: &Cursors)
```

Raises cursors to the given ones (binding responses); never lowers them.

## Trait implementations

`Clone`, `Debug`, `Default`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/client/cursors/struct.CursorTable.html)
