pub struct ServeArgs {
pub host: String,
pub port: u16,
pub model_dir: PathBuf,
pub pool_size: usize,
pub provider: Option<String>,
pub intra_threads: Option<usize>,
pub inter_threads: Option<usize>,
}Expand description
サーバー起動オプション構造体。
Fields§
§host: Stringバインド先ホストアドレス。
port: u16バインド先ポート番号。
model_dir: PathBufモデルファイル格納ディレクトリ。
pool_size: usizeセッションプールサイズ。
provider: Option<String>優先 Execution Provider (auto, coreml, cuda, tensorrt, cpu)。
intra_threads: Option<usize>単一オペレータ内の並列スレッド数 (intra-op)。
inter_threads: Option<usize>複数オペレータ間の並列スレッド数 (inter-op)。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServeArgs
impl RefUnwindSafe for ServeArgs
impl Send for ServeArgs
impl Sync for ServeArgs
impl Unpin for ServeArgs
impl UnsafeUnpin for ServeArgs
impl UnwindSafe for ServeArgs
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more