summaryrefslogtreecommitdiff
path: root/rola-bucket/src/protocol
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-18 01:06:16 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-18 01:06:16 +0800
commitebd46942c3fcc7939e5567a797a55198148301ea (patch)
treeffa06c7d6af46bb0008426483d6db79dfa5ae4fb /rola-bucket/src/protocol
parentd2e4cb85af2c6101cd435c10cfd3d4084cd83e76 (diff)
refactor: rename `Info` and `TransferInfo` to `ExtraInfo`
Diffstat (limited to 'rola-bucket/src/protocol')
-rw-r--r--rola-bucket/src/protocol/local_fs.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/rola-bucket/src/protocol/local_fs.rs b/rola-bucket/src/protocol/local_fs.rs
index b3885a7..ec8999b 100644
--- a/rola-bucket/src/protocol/local_fs.rs
+++ b/rola-bucket/src/protocol/local_fs.rs
@@ -24,11 +24,11 @@ pub enum LocalFileSystemProtocol {
}
impl BucketTransferProtocol for LocalFileSystemProtocol {
- type TransferInfo = ();
+ type ExtraInfo = ();
fn upload_to_bucket(
&self,
- req: &super::UploadToBucketRequest<Self::TransferInfo>,
+ req: &super::UploadToBucketRequest<Self::ExtraInfo>,
) -> Result<(), BucketTransferProtocolError> {
let ClientSide { bucket_root } = self else {
// NOTE: As a local filesystem transfer protocol,
@@ -44,7 +44,7 @@ impl BucketTransferProtocol for LocalFileSystemProtocol {
fn download_from_bucket(
&self,
- req: &super::DownloadFromBucketRequest<Self::TransferInfo>,
+ req: &super::DownloadFromBucketRequest<Self::ExtraInfo>,
) -> Result<(), BucketTransferProtocolError> {
let ClientSide { bucket_root } = self else {
// NOTE: As a local filesystem transfer protocol,
@@ -60,7 +60,7 @@ impl BucketTransferProtocol for LocalFileSystemProtocol {
fn transfer_to_client(
&self,
- req: &super::TransferToClientRequest<Self::TransferInfo>,
+ req: &super::TransferToClientRequest<Self::ExtraInfo>,
) -> Result<(), BucketTransferProtocolError> {
let BucketSide { client_root } = self else {
// NOTE: As a local filesystem transfer protocol,
@@ -76,7 +76,7 @@ impl BucketTransferProtocol for LocalFileSystemProtocol {
fn receive_from_client(
&self,
- req: &super::ReceiveFromClientRequest<Self::TransferInfo>,
+ req: &super::ReceiveFromClientRequest<Self::ExtraInfo>,
) -> Result<(), BucketTransferProtocolError> {
let BucketSide { client_root } = self else {
// NOTE: As a local filesystem transfer protocol,