pub struct MlInferenceSender<T: Transport> { /* private fields */ }Expand description
MlInferenceSender sends messages to a MlInference service The MlInference service client for sending MlInference messages
Implementations§
Source§impl<T: Transport> MlInferenceSender<T>
impl<T: Transport> MlInferenceSender<T>
pub fn set_timeout(&self, interval: Duration)
Source§impl<'send> MlInferenceSender<ProviderTransport<'send>>
impl<'send> MlInferenceSender<ProviderTransport<'send>>
Sourcepub fn for_actor(ld: &'send LinkDefinition) -> Self
pub fn for_actor(ld: &'send LinkDefinition) -> Self
Constructs a Sender using an actor’s LinkDefinition, Uses the provider’s HostBridge for rpc
Trait Implementations§
Source§impl<T: Transport + Sync + Send> MlInference for MlInferenceSender<T>
impl<T: Transport + Sync + Send> MlInference for MlInferenceSender<T>
Source§fn predict<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 InferenceInput,
) -> Pin<Box<dyn Future<Output = RpcResult<InferenceOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn predict<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
arg: &'life2 InferenceInput,
) -> Pin<Box<dyn Future<Output = RpcResult<InferenceOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
predict
Source§fn contract_id() -> &'static str
fn contract_id() -> &'static str
returns the capability contract id for this interface
Auto Trait Implementations§
impl<T> Freeze for MlInferenceSender<T>where
T: Freeze,
impl<T> RefUnwindSafe for MlInferenceSender<T>where
T: RefUnwindSafe,
impl<T> Send for MlInferenceSender<T>
impl<T> Sync for MlInferenceSender<T>where
T: Sync,
impl<T> Unpin for MlInferenceSender<T>where
T: Unpin,
impl<T> UnwindSafe for MlInferenceSender<T>where
T: 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