pub struct SignerRemote { /* private fields */ }Implementations§
Source§impl SignerRemote
impl SignerRemote
Sourcepub async fn ping(
&self,
keys: &SignerKeys,
user: &SignerUser,
) -> RemoteResult<()>
pub async fn ping( &self, keys: &SignerKeys, user: &SignerUser, ) -> RemoteResult<()>
测试与远程服务器的连接
Sourcepub async fn get_crdt_events_from_remote(
&self,
frontiers: &CrdtFrontier,
keys: &SignerKeys,
user: &SignerUser,
) -> RemoteResult<Vec<CrdtEventVO>>
pub async fn get_crdt_events_from_remote( &self, frontiers: &CrdtFrontier, keys: &SignerKeys, user: &SignerUser, ) -> RemoteResult<Vec<CrdtEventVO>>
根据前沿信息从远程服务器获取 CRDT 事件
Sourcepub async fn sync_crdt_event(&self, meta: &SignerMeta) -> RemoteResult<()>
pub async fn sync_crdt_event(&self, meta: &SignerMeta) -> RemoteResult<()>
使用 frontiers 同步 CRDT 信息
Sourcepub async fn pull_user(
&self,
meta: &SignerMeta,
user_key: &str,
) -> RemoteResult<()>
pub async fn pull_user( &self, meta: &SignerMeta, user_key: &str, ) -> RemoteResult<()>
从远程服务器拉取用户信息
Sourcepub async fn open_eventsource(&mut self, meta: SignerMeta) -> RemoteResult<()>
pub async fn open_eventsource(&mut self, meta: SignerMeta) -> RemoteResult<()>
打开事件源连接
Sourcepub async fn get_resource_usage(
&self,
keys: &SignerKeys,
user: &SignerUser,
) -> RemoteResult<ResourceUsage>
pub async fn get_resource_usage( &self, keys: &SignerKeys, user: &SignerUser, ) -> RemoteResult<ResourceUsage>
查询用户在服务上的资源用量
Sourcepub async fn get_crdt_frontiers(
&self,
keys: &SignerKeys,
user: &SignerUser,
) -> RemoteResult<CrdtFrontier>
pub async fn get_crdt_frontiers( &self, keys: &SignerKeys, user: &SignerUser, ) -> RemoteResult<CrdtFrontier>
从远程服务器获取 CRDT 前沿信息
Trait Implementations§
Source§impl Clone for SignerRemote
impl Clone for SignerRemote
Source§fn clone(&self) -> SignerRemote
fn clone(&self) -> SignerRemote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SignerRemote
impl RefUnwindSafe for SignerRemote
impl Send for SignerRemote
impl Sync for SignerRemote
impl Unpin for SignerRemote
impl UnsafeUnpin for SignerRemote
impl UnwindSafe for SignerRemote
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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