Trait taskchampion::Server [−][src]
pub trait Server {
fn add_version(
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Result<AddVersionResult>;
fn get_child_version(
&mut self,
parent_version_id: VersionId
) -> Result<GetVersionResult>;
}
Expand description
A value implementing this trait can act as a server against which a replica can sync.
Required methods
fn add_version(
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Result<AddVersionResult>
fn add_version(
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Result<AddVersionResult>
Add a new version.
fn get_child_version(
&mut self,
parent_version_id: VersionId
) -> Result<GetVersionResult>
fn get_child_version(
&mut self,
parent_version_id: VersionId
) -> Result<GetVersionResult>
Get the version with the given parent VersionId