pub struct Options {
pub workers: usize,
pub queue: usize,
pub timeout: Duration,
pub max_body_bytes: u64,
pub any_host: bool,
pub studio: bool,
}Expand description
What the service may cost, apart from the per-call limits of the operations themselves.
Fields§
§workers: usizeRequests handled at once.
queue: usizeAccepted connections that may wait for a worker. Past it, a connection is answered 503 and closed.
timeout: DurationA request must arrive whole within this time, and its answer must be taken within it.
max_body_bytes: u64Longest request body.
any_host: boolAnswer requests whatever host they name. Off, only loopback names are answered, which keeps a web page from reaching the service through a name it controls.
studio: boolServe the Studio page under /studio.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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