pub struct EngineHost { /* private fields */ }Implementations§
Source§impl EngineHost
impl EngineHost
pub fn spawn<E, F>(make_engine: F) -> Result<EngineHost, DaemonError>
pub fn try_spawn<E, F>(make_engine: F) -> Result<EngineHost, DaemonError>
pub fn try_spawn_loaded<F>(open: F) -> Result<EngineHost, DaemonError>
pub fn spawn_process(spec: WorkerSpec) -> Result<EngineHost, DaemonError>
pub fn yield_slot(&self) -> YieldSlot
Sourcepub fn clear_yield(&self)
pub fn clear_yield(&self)
Lowers the yield flag before a tick is sent.
pub fn is_process(&self) -> bool
pub fn worker_pid(&self) -> Option<u32>
pub fn respawn(&mut self) -> Result<(), DaemonError>
pub fn take_record_change(&mut self) -> Option<String>
pub fn max_seqs(&self) -> Option<u64>
pub fn exact_seeds_only(&self) -> bool
Sourcepub fn needs_prefix_checkpoints(&self) -> bool
pub fn needs_prefix_checkpoints(&self) -> bool
The runtime seeds only from a state covering a whole cached sequence, so a shared prefix needs a copy kept where it ends.
pub fn park_refused(&self) -> Option<String>
pub fn round_granular(&self) -> bool
pub fn lossy_park_allowed(&self) -> bool
pub fn capabilities(&self) -> SharedCapabilities
pub fn generation(&self) -> u64
pub fn is_alive(&self) -> bool
pub fn client(&mut self) -> &mut WorkerClient
pub fn kv_bits(&self) -> u32
pub fn page_size(&self) -> Option<u64>
pub fn has_unservable_space(&self) -> bool
pub fn has_recurrent_space(&self) -> bool
pub fn cache_serves_all_spaces(&self) -> bool
pub fn parkable_spaces(&self) -> Vec<(u32, u32, u32, u32)>
pub fn park_boundary(&self, len: u64) -> u64
pub fn multi_space(&self) -> bool
pub fn kv_block_bytes(&self) -> Option<u64>
pub fn paged_spaces(&self) -> Vec<(u32, u64, u64)>
pub fn blob_spaces(&self) -> Vec<(u32, u64)>
pub fn space_shape(&self, space_id: u32) -> Option<(u32, u32)>
pub fn max_stream_tokens(&self) -> u64
pub fn staged_tokens(&self) -> u64
Trait Implementations§
Source§impl Drop for EngineHost
impl Drop for EngineHost
Auto Trait Implementations§
impl !RefUnwindSafe for EngineHost
impl !Sync for EngineHost
impl !UnwindSafe for EngineHost
impl Freeze for EngineHost
impl Send for EngineHost
impl Unpin for EngineHost
impl UnsafeUnpin for EngineHost
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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