Struct prs_lib::sync::Sync[][src]

pub struct Sync<'a> { /* fields omitted */ }
Expand description

Sync helper for given store.

Implementations

Construct new sync helper for given store.

Check readyness of store for syncing.

This checks whether the repository state is clean, which means that there’s no active merge/rebase/etc. The repository might be dirty, use sync_is_dirty to check that.

Prepare the store for new changes.

  • If sync is not initialized, it does nothing.
  • If sync remote is set, it pulls changes.

Finalize the store with new changes.

  • If sync is not initialized, it does nothing.
  • If sync is initialized, it commits changes.
  • If sync remote is set, it pushes changes.

Initialize sync.

Clone sync from a remote URL.

Check whether sync has been initialized in this store.

Get a list of sync remotes.

Get the URL of the given remote.

Add the URL of the given remote.

Set the URL of the given remote.

Check whether this store has a remote configured.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Performs the conversion.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.