[][src]Struct orkhon::orkhon::Orkhon

pub struct Orkhon { /* fields omitted */ }

Methods

impl Orkhon[src]

pub fn new() -> Self[src]

pub fn config(self, config: OrkhonConfig) -> Self[src]

pub fn tensorflow(self, model_name: &'static str, model_file: PathBuf) -> Self[src]

pub fn pymodel(
    self,
    model_name: &'static str,
    module_path: &'static str,
    module: &'static str,
    requester_hook: &'static str
) -> Self
[src]

pub fn pymodel_request<K: 'static + Send, R: 'static + Send, T: 'static + Send>(
    self,
    model_name: &str,
    request: ORequest<PyModelRequest<K, R, T>>
) -> Result<OResponse<PyObject>> where
    K: Hash + Eq + Default + ToPyObject + Send,
    R: Default + ToPyObject + Send,
    T: Default + ToPyObject + Send
[src]

pub fn tensorflow_request(
    self,
    model_name: &str,
    request: ORequest<TFRequest>
) -> Result<OResponse<TFResponse>>
[src]

pub async fn pymodel_request_async<K: 'static + Send, R: 'static + Send, T: 'static + Send, '_>(
    self,
    model_name: &'_ str,
    request: ORequest<PyModelRequest<K, R, T>>
) -> Result<OResponse<PyObject>> where
    K: Hash + Eq + Default + ToPyObject + Send,
    R: Default + ToPyObject + Send,
    T: Default + ToPyObject + Send
[src]

pub async fn tensorflow_request_async<'_>(
    self,
    model_name: &'_ str,
    request: ORequest<TFRequest>
) -> Result<OResponse<TFResponse>>
[src]

pub fn build(self) -> Self[src]

Trait Implementations

impl Clone for Orkhon[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for Orkhon[src]

Auto Trait Implementations

impl Send for Orkhon

impl Sync for Orkhon

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> FromPy<T> for T[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 
[src]

impl<T> Downcast for T where
    T: Any

impl<T> Clone for T where
    T: Clone
[src]