pub struct Doc { /* private fields */ }Implementations§
Source§impl Doc
impl Doc
pub fn new() -> Self
pub fn with_options(options: DocOptions) -> Self
pub fn with_client(client_id: u64) -> Self
pub fn client(&self) -> Client
pub fn set_client(&mut self, client_id: u64)
pub fn renew_client(&mut self)
pub fn clients(&self) -> Vec<u64>
pub fn history(&self) -> StoreHistory
pub fn store_compare(&self, other: &Doc) -> bool
pub fn options(&self) -> &DocOptions
pub fn guid(&self) -> &str
pub fn try_from_binary_v1<T: AsRef<[u8]>>(binary: T) -> JwstCodecResult<Self>
pub fn try_from_binary_v1_with_options<T: AsRef<[u8]>>( binary: T, options: DocOptions, ) -> JwstCodecResult<Self>
pub fn apply_update_from_binary_v1<T: AsRef<[u8]>>( &mut self, binary: T, ) -> JwstCodecResult
pub fn apply_update(&mut self, update: Update) -> JwstCodecResult
pub fn keys(&self) -> Vec<String>
pub fn get_or_create_text<S: AsRef<str>>( &self, name: S, ) -> JwstCodecResult<Text>
pub fn create_text(&self) -> JwstCodecResult<Text>
pub fn get_or_create_array<S: AsRef<str>>( &self, str: S, ) -> JwstCodecResult<Array>
pub fn create_array(&self) -> JwstCodecResult<Array>
pub fn get_or_create_map<S: AsRef<str>>(&self, str: S) -> JwstCodecResult<Map>
pub fn create_map(&self) -> JwstCodecResult<Map>
pub fn get_map(&self, str: &str) -> JwstCodecResult<Map>
pub fn encode_update_v1(&self) -> JwstCodecResult<Vec<u8>>
pub fn encode_state_as_update_v1( &self, sv: &StateVector, ) -> JwstCodecResult<Vec<u8>>
pub fn encode_update(&self) -> JwstCodecResult<Update>
pub fn encode_state_as_update( &self, sv: &StateVector, ) -> JwstCodecResult<Update>
pub fn get_state_vector(&self) -> StateVector
pub fn get_delete_sets(&self) -> DeleteSet
pub fn gc(&self) -> JwstCodecResult<()>
Trait Implementations§
impl Send for Doc
impl Sync for Doc
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more