MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / state

Method state

atomic-remote/src/types.rs:335–342  ·  view source on GitHub ↗

Create a state response with values (no advertised `SetId`).

(position: u64, merkle: impl Into<String>, tag_merkle: impl Into<String>)

Source from the content-addressed store, hash-verified

333impl StateResponse {
334 /// Create a state response with values (no advertised `SetId`).
335 pub fn state(position: u64, merkle: impl Into<String>, tag_merkle: impl Into<String>) -> Self {
336 Self::State {
337 position,
338 merkle: merkle.into(),
339 tag_merkle: tag_merkle.into(),
340 set_id: None,
341 }
342 }
343
344 /// Create a state response that also advertises the order-invariant
345 /// [`SetId`](atomic_core::types::SetId) of the view's change set.

Callers 2

filterFunction · 0.45
statusMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected