[−][src]Trait taskchampion::Server
A value implementing this trait can act as a server against which a replica can sync.
Required methods
pub fn add_version(
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Fallible<AddVersionResult>
[src]
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Fallible<AddVersionResult>
Add a new version.
pub fn get_child_version(
&mut self,
parent_version_id: VersionId
) -> Fallible<GetVersionResult>
[src]
&mut self,
parent_version_id: VersionId
) -> Fallible<GetVersionResult>
Get the version with the given parent VersionId
Implementors
impl Server for RemoteServer
[src]
pub fn add_version(
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Fallible<AddVersionResult>
[src]
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Fallible<AddVersionResult>
pub fn get_child_version(
&mut self,
parent_version_id: VersionId
) -> Fallible<GetVersionResult>
[src]
&mut self,
parent_version_id: VersionId
) -> Fallible<GetVersionResult>
impl<'t> Server for LocalServer<'t>
[src]
pub fn add_version(
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Fallible<AddVersionResult>
[src]
&mut self,
parent_version_id: VersionId,
history_segment: HistorySegment
) -> Fallible<AddVersionResult>
Add a new version. If the given version number is incorrect, this responds with the appropriate version and expects the caller to try again.
pub fn get_child_version(
&mut self,
parent_version_id: VersionId
) -> Fallible<GetVersionResult>
[src]
&mut self,
parent_version_id: VersionId
) -> Fallible<GetVersionResult>
Get a vector of all versions after since_version