pub struct TvixIO<T> {
actual: T,
}
Fields§
§actual: T
Implementations§
Trait Implementations§
source§impl<T> EvalIO for TvixIO<T>
impl<T> EvalIO for TvixIO<T>
source§fn store_dir(&self) -> Option<String>
fn store_dir(&self) -> Option<String>
Returns the root of the store directory, if such a thing
exists in the evaluation context. Read more
source§fn import_path(&self, path: &Path) -> Result<PathBuf>
fn import_path(&self, path: &Path) -> Result<PathBuf>
Import the given path. What this means depends on the implementation,
for example for a
std::io
-based implementation this might be a no-op,
while for a Tvix store this might be a copy of the given files to the
store. Read moresource§fn path_exists(&self, path: &Path) -> Result<bool>
fn path_exists(&self, path: &Path) -> Result<bool>
Verify whether the file at the specified path exists. Read more
source§fn open(&self, path: &Path) -> Result<Box<dyn Read>>
fn open(&self, path: &Path) -> Result<Box<dyn Read>>
Open the file at the specified path to a
io::Read
.Auto Trait Implementations§
impl<T> Freeze for TvixIO<T>where
T: Freeze,
impl<T> RefUnwindSafe for TvixIO<T>where
T: RefUnwindSafe,
impl<T> Send for TvixIO<T>where
T: Send,
impl<T> Sync for TvixIO<T>where
T: Sync,
impl<T> Unpin for TvixIO<T>where
T: Unpin,
impl<T> UnwindSafe for TvixIO<T>where
T: UnwindSafe,
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> 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> 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 moresource§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