pub struct RustCrate { /* private fields */ }Expand description
Specifies a crate that uses hydro_deploy_integration to be
deployed as a service.
Implementations§
Source§impl RustCrate
impl RustCrate
Sourcepub fn new(src: impl Into<PathBuf>, on: Arc<dyn Host>) -> Self
pub fn new(src: impl Into<PathBuf>, on: Arc<dyn Host>) -> Self
Creates a new RustCrate that will be deployed on the given host.
The src argument is the path to the crate’s directory, and the on
argument is the host that the crate will be deployed on.
Sourcepub fn bin(self, bin: impl Into<String>) -> Self
pub fn bin(self, bin: impl Into<String>) -> Self
Sets the target to be a binary with the given name,
equivalent to cargo run --bin <name>.
Sourcepub fn example(self, example: impl Into<String>) -> Self
pub fn example(self, example: impl Into<String>) -> Self
Sets the target to be an example with the given name,
equivalent to cargo run --example <name>.
Sourcepub fn profile(self, profile: impl Into<String>) -> Self
pub fn profile(self, profile: impl Into<String>) -> Self
Sets the profile to be used when building the crate.
Equivalent to cargo run --profile <profile>.
pub fn rustflags(self, rustflags: impl Into<String>) -> Self
pub fn target_dir(self, target_dir: impl Into<PathBuf>) -> Self
pub fn build_env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn no_default_features(self) -> Self
pub fn features( self, features: impl IntoIterator<Item = impl Into<String>>, ) -> Self
pub fn config(self, config: impl Into<String>) -> Self
pub fn tracing(self, perf: impl Into<TracingOptions>) -> Self
Sourcepub fn args(self, args: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn args(self, args: impl IntoIterator<Item = impl Into<String>>) -> Self
Sets the arguments to be passed to the binary when it is launched.
Sourcepub fn display_name(self, display_name: impl Into<String>) -> Self
pub fn display_name(self, display_name: impl Into<String>) -> Self
Sets the display name for this service, which will be used in logging.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RustCrate
impl !RefUnwindSafe for RustCrate
impl Send for RustCrate
impl Sync for RustCrate
impl Unpin for RustCrate
impl !UnwindSafe for RustCrate
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].