Struct hydro_deploy::hydroflow_crate::HydroflowCrate
source · pub struct HydroflowCrate { /* private fields */ }
Expand description
Specifies a crate that uses hydroflow_deploy_integration
to be
deployed as a service.
Implementations§
source§impl HydroflowCrate
impl HydroflowCrate
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 HydroflowCrate
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 no_default_features(self) -> Self
pub fn features( self, features: impl IntoIterator<Item = 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§
source§impl Clone for HydroflowCrate
impl Clone for HydroflowCrate
source§fn clone(&self) -> HydroflowCrate
fn clone(&self) -> HydroflowCrate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ServiceBuilder for HydroflowCrate
impl ServiceBuilder for HydroflowCrate
Auto Trait Implementations§
impl Freeze for HydroflowCrate
impl !RefUnwindSafe for HydroflowCrate
impl Send for HydroflowCrate
impl Sync for HydroflowCrate
impl Unpin for HydroflowCrate
impl !UnwindSafe for HydroflowCrate
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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>
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