[][src]Trait taskchampion::Server

pub trait Server {
    pub fn add_version(
        &mut self,
        parent_version_id: VersionId,
        history_segment: HistorySegment
    ) -> Fallible<AddVersionResult>;
pub fn get_child_version(
        &mut self,
        parent_version_id: VersionId
    ) -> Fallible<GetVersionResult>; }

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]

Add a new version.

pub fn get_child_version(
    &mut self,
    parent_version_id: VersionId
) -> Fallible<GetVersionResult>
[src]

Get the version with the given parent VersionId

Loading content...

Implementors

impl Server for RemoteServer[src]

impl<'t> Server for LocalServer<'t>[src]

pub fn add_version(
    &mut self,
    parent_version_id: VersionId,
    history_segment: HistorySegment
) -> Fallible<AddVersionResult>
[src]

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]

Get a vector of all versions after since_version

Loading content...