pub struct Doc(/* private fields */);
Implementations§
Source§impl Doc
impl Doc
pub fn tlpt(&self) -> Tlpt
pub fn start_writing(&self) -> (UnboundedSender<Val>, ObjectID)
pub fn start_writing_without_intro(&self) -> (UnboundedSender<Val>, ObjectID)
pub fn id(&self) -> DocID
pub fn content(&self) -> AnyContentType
pub fn doc_team(&self) -> TeamID
pub async fn create_doc_with_same_access( &self, content_type: AnyContentType, ) -> Doc
pub async fn get_presence_doc(&self) -> Option<DocID>
pub async fn get_or_create_presence_doc(&self) -> Doc
pub async fn set_presence(&self, val: Val)
pub fn presence_updates(&self) -> impl Stream<Item = (DocID, ObjectID, Val)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Doc
impl !RefUnwindSafe for Doc
impl !Send for Doc
impl !Sync for Doc
impl Unpin for Doc
impl !UnwindSafe for Doc
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