(&self)
| 127 | } |
| 128 | |
| 129 | pub fn encode_collab(&self) -> Result<EncodedCollab, CollabError> { |
| 130 | self.collab.encode_collab_v1(|collab| { |
| 131 | CollabType::Document |
| 132 | .validate_require_data(collab) |
| 133 | .map_err(|_| CollabError::DocumentMissingRequiredData) |
| 134 | }) |
| 135 | } |
| 136 | |
| 137 | /// open a document and subscribe to the document changes. |
| 138 | pub fn subscribe_block_changed<K, F>(&mut self, key: K, callback: F) |
no test coverage detected