pub struct Config {
pub host: String,
pub installer: Installer,
pub id: String,
pub data_dir: PathBuf,
pub args: Vec<String>,
pub policy: Option<Policy>,
pub grants: Grants,
pub services: Arc<dyn Services>,
pub backoff: Backoff,
pub idle: Option<Duration>,
pub stop_grace: Duration,
pub logs: Option<Sender<LogLine>>,
}Expand description
How to run an extension.
Fields§
§host: StringThe host app and version, told to the extension (“morph 0.5.0”).
installer: InstallerWhere the extensions are installed.
id: StringThe extension id.
data_dir: PathBufIts data directory (the only place it can write).
args: Vec<String>Extra arguments for the binary.
policy: Option<Policy>Extra paths or limits; None uses Policy::for_extension.
grants: GrantsWhat the user granted.
services: Arc<dyn Services>The app’s services.
backoff: BackoffRestart backoff.
idle: Option<Duration>Stop after this long without calls or events.
stop_grace: DurationHow long a stop waits before killing.
logs: Option<Sender<LogLine>>Where extension log lines go besides tracing.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Config
impl !UnwindSafe for Config
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request