pub struct CacheVolume {
pub name: String,
pub mount_path: String,
}Expand description
跨运行持久化的编译缓存(Docker named volume)。
语言镜像把编译缓存目录(如 Go 的 GOCACHE)指到 mount_path,docker.rs 把
共享 named volume 挂载到该路径,使每次运行复用上次编译产物。仅编译型语言使用。
Fields§
§name: String§mount_path: StringTrait Implementations§
Source§impl Clone for CacheVolume
impl Clone for CacheVolume
Source§fn clone(&self) -> CacheVolume
fn clone(&self) -> CacheVolume
Returns a duplicate 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 Debug for CacheVolume
impl Debug for CacheVolume
Source§impl PartialEq for CacheVolume
impl PartialEq for CacheVolume
impl StructuralPartialEq for CacheVolume
Auto Trait Implementations§
impl Freeze for CacheVolume
impl RefUnwindSafe for CacheVolume
impl Send for CacheVolume
impl Sync for CacheVolume
impl Unpin for CacheVolume
impl UnsafeUnpin for CacheVolume
impl UnwindSafe for CacheVolume
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,
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§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>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.