pub struct FunctionServiceImpl { /* private fields */ }
Expand description
Implementation of the FunctionService
Implementations§
Trait Implementations§
Source§impl Clone for FunctionServiceImpl
impl Clone for FunctionServiceImpl
Source§fn clone(&self) -> FunctionServiceImpl
fn clone(&self) -> FunctionServiceImpl
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 FunctionService for FunctionServiceImpl
impl FunctionService for FunctionServiceImpl
Source§async fn publish(
self,
_: Context,
wasm_file: Vec<u8>,
name: String,
github_auth_token: String,
) -> FunctionResult<String>
async fn publish( self, _: Context, wasm_file: Vec<u8>, name: String, github_auth_token: String, ) -> FunctionResult<String>
Publish a new function
Source§async fn list_functions(
self,
_: Context,
github_auth_token: String,
) -> FunctionResult<Vec<FunctionInfo>>
async fn list_functions( self, _: Context, github_auth_token: String, ) -> FunctionResult<Vec<FunctionInfo>>
List all functions for the authenticated user
Source§async fn unpublish(
self,
_: Context,
name: String,
github_auth_token: String,
) -> FunctionResult<()>
async fn unpublish( self, _: Context, name: String, github_auth_token: String, ) -> FunctionResult<()>
Unpublish a function
Source§async fn get_metrics(
self,
_: Context,
github_auth_token: String,
) -> FunctionResult<Metrics>
async fn get_metrics( self, _: Context, github_auth_token: String, ) -> FunctionResult<Metrics>
Get metrics for all functions
Source§fn serve(self) -> ServeFunctionService<Self>
fn serve(self) -> ServeFunctionService<Self>
Returns a serving function to use with
InFlightRequest::execute.
Auto Trait Implementations§
impl Freeze for FunctionServiceImpl
impl !RefUnwindSafe for FunctionServiceImpl
impl Send for FunctionServiceImpl
impl Sync for FunctionServiceImpl
impl Unpin for FunctionServiceImpl
impl !UnwindSafe for FunctionServiceImpl
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