pub struct Node(_);Implementations
sourceimpl Node
impl Node
pub fn new(background: Mofo) -> Self
pub fn create_log(&self) -> WriteAccess
pub fn create_set(&self) -> WriteAccess
pub fn diff_for_log_append(
&self,
write_access: &WriteAccess,
append: &[u8]
) -> Diff
pub async fn append_to_log(&self, write_access: &WriteAccess, append: &[u8])
pub async fn insert_into_set<I: IntoIterator<Item = HashOf<SetItem>>>(
&self,
write_access: &WriteAccess,
item_data: Vec<u8>,
item_prev: I
) -> Result<HashOf<SetItem>, ApplyDiffError>
pub async fn apply_new_diff(&self, diff: Diff)
pub async fn sync_object_with_remotes(&self, id: ObjectID)
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
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more