pub struct Node(_);Implementations
sourceimpl Node
impl Node
pub fn new(background: Mofo) -> Self
pub async fn create_log<M: Serialize>(
&self,
meta: Option<M>
) -> (ObjectID, WriteAccess)
pub async fn create_set<M: Serialize>(
&self,
meta: Option<M>
) -> (ObjectID, WriteAccess)
pub async fn create_blob<D: Serialize>(&self, data: D) -> ObjectID
pub fn diff_for_log_append(
&self,
id: ObjectID,
write_access: &WriteAccess,
append: &[u8]
) -> Diff
pub async fn append_to_log(
&self,
id: ObjectID,
write_access: &WriteAccess,
append: &[u8]
)
pub async fn insert_into_set(
&self,
id: ObjectID,
write_access: &WriteAccess,
set_item: SetItem
) -> Result<SetItemID, ApplyDiffError>
pub async fn apply_new_diff(&self, diff: Diff)
pub async fn sync_object_with_remotes(
&self,
id: ObjectID,
parent_span: Option<Id>
)
pub fn get_object(&self, id: &ObjectID) -> Option<Rc<RefCell<ObjectState>>>
pub async fn load_object(&self, id: ObjectID) -> Rc<RefCell<ObjectState>>
pub async fn add_local_listener(&self, id: ObjectID, listener: Listener<Diff>)
pub async fn add_remote(&self, remote: Remote)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Node
impl !Send for Node
impl !Sync for Node
impl Unpin for Node
impl !UnwindSafe for Node
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more