pub struct ProtocolClient { /* private fields */ }Implementations§
Source§impl ProtocolClient
impl ProtocolClient
pub fn new() -> Self
pub async fn health( &self, endpoint: &str, ) -> Result<HealthReport, ProviderError>
pub async fn register( &self, endpoint: &str, def: &FunctionDefinition, ) -> Result<(), ProviderError>
pub async fn invoke( &self, endpoint: &str, id: &FunctionId, exchange: &Exchange, timeout: Duration, ) -> Result<InvokeResponse, ProviderError>
pub async fn unregister( &self, endpoint: &str, id: &FunctionId, ) -> Result<(), ProviderError>
pub async fn shutdown(&self, endpoint: &str) -> Result<(), ProviderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProtocolClient
impl !RefUnwindSafe for ProtocolClient
impl Send for ProtocolClient
impl Sync for ProtocolClient
impl Unpin for ProtocolClient
impl UnsafeUnpin for ProtocolClient
impl !UnwindSafe for ProtocolClient
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