pub struct Options {
pub workers: usize,
pub queue: usize,
pub timeout: Duration,
pub max_body_bytes: u64,
pub any_host: bool,
pub studio: bool,
pub registry: bool,
pub operations: bool,
pub federation: Option<Arc<Federation>>,
}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.
registry: boolGive the files of the held vocabularies to whoever asks, under
/v1/vocabularies. Off, those paths do not exist.
operations: boolAnswer the five operations. Off, the service is a registry and nothing else: no caller can make it compute.
federation: Option<Arc<Federation>>Other registries to ask for a vocabulary this one does not hold.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Options
impl !UnwindSafe for Options
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin 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
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> ⓘ
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> ⓘ
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