pub struct SqliteAutoCacheDiskLayerHandle {
pub cache_path: String,
pub cache_key: Option<String>,
}
Expand description
A handle for a disk layer that automatically selects a dbhd file to use as a cache for lower layers.
Fields§
§cache_path: String
Path to the root directory for the cache.
cache_key: Option<String>
The key to use to select the cache file. If None
, use the next layer’s
disk ID.
Trait Implementations§
Source§impl DefaultEncoding for SqliteAutoCacheDiskLayerHandle
impl DefaultEncoding for SqliteAutoCacheDiskLayerHandle
Source§impl ResourceId<DiskLayerHandleKind> for SqliteAutoCacheDiskLayerHandle
impl ResourceId<DiskLayerHandleKind> for SqliteAutoCacheDiskLayerHandle
Source§impl<'encoding> StructDecodeMetadata<'encoding, Resource> for SqliteAutoCacheDiskLayerHandle
impl<'encoding> StructDecodeMetadata<'encoding, Resource> for SqliteAutoCacheDiskLayerHandle
Source§impl StructEncodeMetadata<Resource> for SqliteAutoCacheDiskLayerHandle
impl StructEncodeMetadata<Resource> for SqliteAutoCacheDiskLayerHandle
Auto Trait Implementations§
impl Freeze for SqliteAutoCacheDiskLayerHandle
impl RefUnwindSafe for SqliteAutoCacheDiskLayerHandle
impl Send for SqliteAutoCacheDiskLayerHandle
impl Sync for SqliteAutoCacheDiskLayerHandle
impl Unpin for SqliteAutoCacheDiskLayerHandle
impl UnwindSafe for SqliteAutoCacheDiskLayerHandle
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<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, K> IntoResource<K> for Twhere
T: 'static + ResourceId<K> + MeshPayload + Send,
K: ResourceKind,
impl<T, K> IntoResource<K> for Twhere
T: 'static + ResourceId<K> + MeshPayload + Send,
K: ResourceKind,
§fn into_resource(self) -> Resource<K>
fn into_resource(self) -> Resource<K>
Converts
self
into a Resource
.§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in [
MessageEncode::compute_message_size
].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in [
MessageEncode::write_message
].