pub struct AppOptions {
pub async_limits: AsyncLimits,
pub startup_data: Vec<u8>,
pub shutdown_deadline: Duration,
}Expand description
Resource limits and cleanup diagnostics for one application instance. These options never construct an executor or register application services.
Fields§
§async_limits: AsyncLimits§startup_data: Vec<u8>Opaque application-defined bytes, copied by the host before preparation.
At most HOST_MESSAGE_LIMIT bytes. Pax does not choose their encoding.
shutdown_deadline: DurationDiagnostic deadline only; unfinished cleanup retains its dependencies.
Trait Implementations§
Source§impl Clone for AppOptions
impl Clone for AppOptions
Source§fn clone(&self) -> AppOptions
fn clone(&self) -> AppOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AppOptions
impl Default for AppOptions
Source§fn default() -> AppOptions
fn default() -> AppOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AppOptions
impl RefUnwindSafe for AppOptions
impl Send for AppOptions
impl Sync for AppOptions
impl Unpin for AppOptions
impl UnsafeUnpin for AppOptions
impl UnwindSafe for AppOptions
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> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.