Struct moras::remote::Modification
source · pub struct Modification {
pub version: u64,
pub op: OperationType,
pub op_range: OpRange,
pub modified_content: String,
}
Fields§
§version: u64
§op: OperationType
§op_range: OpRange
§modified_content: String
Trait Implementations§
source§impl BasicFile<Rope, Modification> for Text
impl BasicFile<Rope, Modification> for Text
fn get_path(&self) -> &PathBuf
fn get_path_str(&self) -> String
fn is_dirty(&self) -> bool
fn set_dirty(&mut self, dirty: bool)
fn to_string(&self) -> String
fn save(&mut self) -> Result<(), Box<dyn Error>>
fn get_raw(&mut self) -> &mut Rope
fn handle_modify(&mut self, modify: &Modification) -> Result<(), Box<dyn Error>>
source§impl Clone for Modification
impl Clone for Modification
source§fn clone(&self) -> Modification
fn clone(&self) -> Modification
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<UpdateContentRequest> for Modification
impl From<UpdateContentRequest> for Modification
source§fn from(req: UpdateContentRequest) -> Self
fn from(req: UpdateContentRequest) -> Self
Converts to this type from the input type.
source§impl HistorianFile<Rope, Modification, LinkedList<ClientCursor>> for Text
impl HistorianFile<Rope, Modification, LinkedList<ClientCursor>> for Text
fn get_version(&self) -> usize
fn merge_history( &mut self, modifies: &[Modification], cursors: &mut LinkedList<ClientCursor>, ) -> Result<(), Box<dyn Error>>
source§impl Into<UpdateContentRequest> for Modification
impl Into<UpdateContentRequest> for Modification
source§fn into(self) -> UpdateContentRequest
fn into(self) -> UpdateContentRequest
Converts this type into the (usually inferred) input type.
impl MFile<Rope, Modification, LinkedList<ClientCursor>> for Text
Auto Trait Implementations§
impl Freeze for Modification
impl RefUnwindSafe for Modification
impl Send for Modification
impl Sync for Modification
impl Unpin for Modification
impl UnwindSafe for Modification
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request