pub struct SidecarMounts(/* private fields */);Expand description
The mount table, parsed from configuration.
Implementations§
Source§impl SidecarMounts
impl SidecarMounts
Sourcepub fn from_config(config: &dyn Config) -> Result<Self, Vec<String>>
pub fn from_config(config: &dyn Config) -> Result<Self, Vec<String>>
Reads and validates HARNESS_SIDECARS. Absent or empty is not an
error: most ventures mount no sidecars.
§Errors
Every malformed entry, reported together so one deploy surfaces them all rather than one per attempt.
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &SidecarMount>
Sourcepub fn collisions(&self, module_names: &[&str]) -> Vec<String>
pub fn collisions(&self, module_names: &[&str]) -> Vec<String>
Names that collide with an in-process module. Both sides are known
without an Env, so this is the one sidecar check that can run early.
Trait Implementations§
Source§impl Clone for SidecarMounts
impl Clone for SidecarMounts
Source§fn clone(&self) -> SidecarMounts
fn clone(&self) -> SidecarMounts
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 SidecarMounts
impl Debug for SidecarMounts
Source§impl Default for SidecarMounts
impl Default for SidecarMounts
Source§fn default() -> SidecarMounts
fn default() -> SidecarMounts
Returns the “default value” for a type. Read more
impl Eq for SidecarMounts
Source§impl PartialEq for SidecarMounts
impl PartialEq for SidecarMounts
impl StructuralPartialEq for SidecarMounts
Auto Trait Implementations§
impl Freeze for SidecarMounts
impl RefUnwindSafe for SidecarMounts
impl Send for SidecarMounts
impl Sync for SidecarMounts
impl Unpin for SidecarMounts
impl UnsafeUnpin for SidecarMounts
impl UnwindSafe for SidecarMounts
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.