SyncBuilder

Struct SyncBuilder 

Source
pub struct SyncBuilder<'a> { /* private fields */ }
Expand description

Builder for sync operations.

Implementations§

Source§

impl<'a> SyncBuilder<'a>

Source

pub fn to(self, url: &str) -> Self

Set the remote URL to push to.

Source

pub fn from(self, url: &str) -> Self

Set the remote URL to pull from.

Source

pub fn with(self, url: &str) -> Self

Set the remote URL for bidirectional sync.

Source

pub fn url(self, url: &str) -> Self

Alias for with().

Source

pub fn auth(self, username: &str, password: &str) -> Self

Set authentication credentials.

Source

pub fn username(self, username: &str) -> Self

Set username.

Source

pub fn password(self, password: &str) -> Self

Set password.

Source

pub fn push(self) -> Result<SyncResult>

Execute push operation (same as sync for QUIC).

Source

pub fn pull(self) -> Result<SyncResult>

Execute pull operation (same as sync for QUIC).

Source

pub fn execute(self) -> Result<SyncResult>

Execute bidirectional sync.

Auto Trait Implementations§

§

impl<'a> Freeze for SyncBuilder<'a>

§

impl<'a> !RefUnwindSafe for SyncBuilder<'a>

§

impl<'a> !Send for SyncBuilder<'a>

§

impl<'a> !Sync for SyncBuilder<'a>

§

impl<'a> Unpin for SyncBuilder<'a>

§

impl<'a> !UnwindSafe for SyncBuilder<'a>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.