pub struct FunctionServiceClient<Stub = Channel<FunctionServiceRequest, FunctionServiceResponse>>(/* private fields */);
Expand description
The client stub that makes RPC calls to the server. All request methods return Futures.
Implementations§
Source§impl FunctionServiceClient
impl FunctionServiceClient
Sourcepub fn new<T>(
config: Config,
transport: T,
) -> NewClient<Self, RequestDispatch<FunctionServiceRequest, FunctionServiceResponse, T>>
pub fn new<T>( config: Config, transport: T, ) -> NewClient<Self, RequestDispatch<FunctionServiceRequest, FunctionServiceResponse, T>>
Returns a new client stub that sends requests over the given transport.
Source§impl<Stub> FunctionServiceClient<Stub>
impl<Stub> FunctionServiceClient<Stub>
Sourcepub fn publish(
&self,
ctx: Context,
wasm_file: Vec<u8>,
name: String,
github_auth_token: String,
) -> impl Future<Output = Result<FunctionResult<String>, RpcError>> + '_
pub fn publish( &self, ctx: Context, wasm_file: Vec<u8>, name: String, github_auth_token: String, ) -> impl Future<Output = Result<FunctionResult<String>, RpcError>> + '_
Publish a new function
Sourcepub fn list_functions(
&self,
ctx: Context,
github_auth_token: String,
) -> impl Future<Output = Result<FunctionResult<Vec<FunctionInfo>>, RpcError>> + '_
pub fn list_functions( &self, ctx: Context, github_auth_token: String, ) -> impl Future<Output = Result<FunctionResult<Vec<FunctionInfo>>, RpcError>> + '_
List all functions for the authenticated user
Sourcepub fn unpublish(
&self,
ctx: Context,
name: String,
github_auth_token: String,
) -> impl Future<Output = Result<FunctionResult<()>, RpcError>> + '_
pub fn unpublish( &self, ctx: Context, name: String, github_auth_token: String, ) -> impl Future<Output = Result<FunctionResult<()>, RpcError>> + '_
Unpublish a function
Sourcepub fn get_metrics(
&self,
ctx: Context,
github_auth_token: String,
) -> impl Future<Output = Result<FunctionResult<Metrics>, RpcError>> + '_
pub fn get_metrics( &self, ctx: Context, github_auth_token: String, ) -> impl Future<Output = Result<FunctionResult<Metrics>, RpcError>> + '_
Get metrics for all functions
Trait Implementations§
Source§impl<Stub: Clone> Clone for FunctionServiceClient<Stub>
impl<Stub: Clone> Clone for FunctionServiceClient<Stub>
Source§fn clone(&self) -> FunctionServiceClient<Stub>
fn clone(&self) -> FunctionServiceClient<Stub>
Returns a duplicate 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<Stub: Debug> Debug for FunctionServiceClient<Stub>
impl<Stub: Debug> Debug for FunctionServiceClient<Stub>
Source§impl<Stub> From<Stub> for FunctionServiceClient<Stub>
impl<Stub> From<Stub> for FunctionServiceClient<Stub>
Auto Trait Implementations§
impl<Stub> Freeze for FunctionServiceClient<Stub>where
Stub: Freeze,
impl<Stub> RefUnwindSafe for FunctionServiceClient<Stub>where
Stub: RefUnwindSafe,
impl<Stub> Send for FunctionServiceClient<Stub>where
Stub: Send,
impl<Stub> Sync for FunctionServiceClient<Stub>where
Stub: Sync,
impl<Stub> Unpin for FunctionServiceClient<Stub>where
Stub: Unpin,
impl<Stub> UnwindSafe for FunctionServiceClient<Stub>where
Stub: UnwindSafe,
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