pub struct RemoteBridge { /* private fields */ }
Expand description
Bridge between a local account and a remote.
Implementations§
Source§impl RemoteBridge
impl RemoteBridge
Sourcepub fn new(
account: Arc<Mutex<LocalAccount>>,
origin: Origin,
signer: BoxedEcdsaSigner,
device: BoxedEd25519Signer,
connection_id: String,
) -> Result<Self>
pub fn new( account: Arc<Mutex<LocalAccount>>, origin: Origin, signer: BoxedEcdsaSigner, device: BoxedEd25519Signer, connection_id: String, ) -> Result<Self>
Create a new remote bridge that updates the given local account.
Sourcepub fn client(&self) -> &HttpClient
pub fn client(&self) -> &HttpClient
Client implementation.
Trait Implementations§
Source§impl Clone for RemoteBridge
impl Clone for RemoteBridge
Source§fn clone(&self) -> RemoteBridge
fn clone(&self) -> RemoteBridge
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl RemoteSync for RemoteBridge
impl RemoteSync for RemoteBridge
Source§fn sync<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RemoteResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sync<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RemoteResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Perform a full sync of the account using
the default options. Read more
Source§fn sync_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 SyncOptions,
) -> Pin<Box<dyn Future<Output = RemoteResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn sync_with_options<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 SyncOptions,
) -> Pin<Box<dyn Future<Output = RemoteResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Perform a full sync of the account
using the given options. Read more
Source§fn sync_file_transfers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RemoteResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sync_file_transfers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = RemoteResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Available on crate feature
files
only.Sync file transfers. Read more
Source§fn force_update<'life0, 'async_trait>(
&'life0 self,
account_data: UpdateSet,
) -> Pin<Box<dyn Future<Output = RemoteResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn force_update<'life0, 'async_trait>(
&'life0 self,
account_data: UpdateSet,
) -> Pin<Box<dyn Future<Output = RemoteResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Force update an account on remote servers. Read more
Auto Trait Implementations§
impl Freeze for RemoteBridge
impl !RefUnwindSafe for RemoteBridge
impl Send for RemoteBridge
impl Sync for RemoteBridge
impl Unpin for RemoteBridge
impl !UnwindSafe for RemoteBridge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more