[−][src]Struct xain_fl::aggregator::rpc::Client
The client stub that makes RPC calls to the server. Exposes a Future interface.
Methods
impl RpcClient
[src]
pub fn new<T>(
config: Config,
transport: T
) -> NewClient<Self, RequestDispatch<RpcRequest, RpcResponse, T>> where
T: Transport<ClientMessage<RpcRequest>, Response<RpcResponse>>,
[src]
config: Config,
transport: T
) -> NewClient<Self, RequestDispatch<RpcRequest, RpcResponse, T>> where
T: Transport<ClientMessage<RpcRequest>, Response<RpcResponse>>,
Returns a new client stub that sends requests over the given transport.
impl<C> RpcClient<C> where
C: Client<'a, RpcRequest, Response = RpcResponse>,
[src]
C: Client<'a, RpcRequest, Response = RpcResponse>,
pub fn select(
&mut self,
ctx: Context,
credentials: Credentials
) -> impl Future<Output = Result<Result<(), ()>>> + '_
[src]
&mut self,
ctx: Context,
credentials: Credentials
) -> impl Future<Output = Result<Result<(), ()>>> + '_
Notify the aggregator that the given client has been selected and should use the given token to download the global weights and upload their local weights.
pub fn aggregate(
&mut self,
ctx: Context
) -> impl Future<Output = Result<Result<(), ()>>> + '_
[src]
&mut self,
ctx: Context
) -> impl Future<Output = Result<Result<(), ()>>> + '_
Notify the aggregator that it should clear its pool of client IDs and tokens. This should be called before starting a new round.
Trait Implementations
impl<C: Clone> Clone for RpcClient<C>
[src]
impl<C: Debug> Debug for RpcClient<C>
[src]
impl<C> From<C> for RpcClient<C> where
C: Client<'a, RpcRequest, Response = RpcResponse>,
[src]
C: Client<'a, RpcRequest, Response = RpcResponse>,
Auto Trait Implementations
impl<C> RefUnwindSafe for RpcClient<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
impl<C> Send for RpcClient<C> where
C: Send,
C: Send,
impl<C> Sync for RpcClient<C> where
C: Sync,
C: Sync,
impl<C> Unpin for RpcClient<C> where
C: Unpin,
C: Unpin,
impl<C> UnwindSafe for RpcClient<C> where
C: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromPy<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> IntoPy<U> for T where
U: FromPy<T>,
[src]
U: FromPy<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
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>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
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>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,