pub struct WorkspaceRootSet {
pub primary: WorkspaceRoot,
pub additional: Vec<WorkspaceRoot>,
}Fields§
§primary: WorkspaceRoot§additional: Vec<WorkspaceRoot>Implementations§
Source§impl WorkspaceRootSet
impl WorkspaceRootSet
pub fn from_primary(path: impl Into<PathBuf>) -> Result<Self>
pub fn new<I, P>(primary: impl Into<PathBuf>, additional: I) -> Result<Self>
pub fn parse_vfs_path(&self, input: &str) -> Result<ResolvedPath>
pub fn parse_host_scope( &self, root: &str, relative: Option<&str>, ) -> Result<PathBuf>
pub fn primary_host_root(&self) -> &Path
pub fn set_primary_host_root(&mut self, path: PathBuf) -> Result<()>
pub fn spawn_cwd(&self) -> Result<PathBuf>
pub fn contains_host_path(&self, path: &Path) -> bool
pub fn additional_mount_point(root_name: &str) -> String
Trait Implementations§
Source§impl Clone for WorkspaceRootSet
impl Clone for WorkspaceRootSet
Source§fn clone(&self) -> WorkspaceRootSet
fn clone(&self) -> WorkspaceRootSet
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 WorkspaceRootSet
impl Debug for WorkspaceRootSet
impl Eq for WorkspaceRootSet
Source§impl PartialEq for WorkspaceRootSet
impl PartialEq for WorkspaceRootSet
Source§fn eq(&self, other: &WorkspaceRootSet) -> bool
fn eq(&self, other: &WorkspaceRootSet) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorkspaceRootSet
Auto Trait Implementations§
impl Freeze for WorkspaceRootSet
impl RefUnwindSafe for WorkspaceRootSet
impl Send for WorkspaceRootSet
impl Sync for WorkspaceRootSet
impl Unpin for WorkspaceRootSet
impl UnsafeUnpin for WorkspaceRootSet
impl UnwindSafe for WorkspaceRootSet
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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