pub struct ProtocolClient { /* private fields */ }Implementations§
Source§impl ProtocolClient
impl ProtocolClient
Sourcepub fn new() -> Result<Self, ProviderError>
pub fn new() -> Result<Self, ProviderError>
Typed error instead of a panic (rc-3j4mq sibling sweep): on a
CA-less platform (e.g. Android/Termux) the reqwest build fails —
callers (the container provider builder) surface it as a
ProviderError rather than aborting the process.
pub async fn health( &self, endpoint: &str, ) -> Result<FunctionHealthStatus, 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>
Auto Trait Implementations§
impl !RefUnwindSafe for ProtocolClient
impl !UnwindSafe for ProtocolClient
impl Freeze for ProtocolClient
impl Send for ProtocolClient
impl Sync for ProtocolClient
impl Unpin for ProtocolClient
impl UnsafeUnpin 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