pub struct PreStartServiceHook { /* private fields */ }Expand description
One authored service pre_start hook mapping.
Implementations§
Source§impl PreStartServiceHook
impl PreStartServiceHook
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete hook mapping span.
Sourcepub const fn command(&self) -> Option<&Command>
pub const fn command(&self) -> Option<&Command>
Returns the optional command without shell or argv interpretation.
Sourcepub const fn image(&self) -> Option<&Located<String>>
pub const fn image(&self) -> Option<&Located<String>>
Returns the strict raw hook image without image-reference interpretation.
Sourcepub const fn environment(&self) -> Option<&Environment>
pub const fn environment(&self) -> Option<&Environment>
Returns the hook-local environment without combining it with service environment values.
Sourcepub const fn privileged(&self) -> Option<&Located<BooleanValue>>
pub const fn privileged(&self) -> Option<&Located<BooleanValue>>
Returns the explicit hook privilege choice.
Sourcepub const fn per_replica(&self) -> Option<&Located<BooleanValue>>
pub const fn per_replica(&self) -> Option<&Located<BooleanValue>>
Returns the explicit per-replica choice without injecting a default.
Sourcepub const fn user(&self) -> Option<&Located<String>>
pub const fn user(&self) -> Option<&Located<String>>
Returns the strict YAML-string hook user without default resolution.
Sourcepub const fn working_dir(&self) -> Option<&Located<String>>
pub const fn working_dir(&self) -> Option<&Located<String>>
Returns the strict YAML-string hook working directory without path resolution.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained hook x-* members.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns malformed, duplicate, and unknown hook members.
Trait Implementations§
Source§impl Clone for PreStartServiceHook
impl Clone for PreStartServiceHook
Source§fn clone(&self) -> PreStartServiceHook
fn clone(&self) -> PreStartServiceHook
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreStartServiceHook
impl Debug for PreStartServiceHook
impl Eq for PreStartServiceHook
Source§impl PartialEq for PreStartServiceHook
impl PartialEq for PreStartServiceHook
impl StructuralPartialEq for PreStartServiceHook
Auto Trait Implementations§
impl Freeze for PreStartServiceHook
impl RefUnwindSafe for PreStartServiceHook
impl Send for PreStartServiceHook
impl Sync for PreStartServiceHook
impl Unpin for PreStartServiceHook
impl UnsafeUnpin for PreStartServiceHook
impl UnwindSafe for PreStartServiceHook
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