ContentType

Trait ContentType 

Source
pub trait ContentType {
    // Required methods
    fn content_type(&self) -> &'static str;
    fn connect_and_init(&self, weak_doc: WeakDoc, require_intro: bool);
    fn follow_new_log(
        &self,
        log_id: ObjectID,
        diffs: Pin<Box<dyn Stream<Item = ContentDiff>>>,
    ) -> Pin<Box<dyn Future<Output = ()>>>;
}

Required Methods§

Source

fn content_type(&self) -> &'static str

Source

fn connect_and_init(&self, weak_doc: WeakDoc, require_intro: bool)

Source

fn follow_new_log( &self, log_id: ObjectID, diffs: Pin<Box<dyn Stream<Item = ContentDiff>>>, ) -> Pin<Box<dyn Future<Output = ()>>>

Implementors§