format
This commit is contained in:
parent
2e0732e579
commit
638b449e6f
@ -1,35 +1,8 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
commands::{
|
commands::{Command, RequestParserResult, ResponseAttributes, ResponseParserError},
|
||||||
Command, RequestParserResult, ResponseAttributes, ResponseParserError,
|
|
||||||
},
|
|
||||||
Request,
|
Request,
|
||||||
};
|
};
|
||||||
|
|
||||||
// pub struct Unmount;
|
|
||||||
|
|
||||||
// impl Command for Unmount {
|
|
||||||
// type Response = ();
|
|
||||||
// const COMMAND: &'static str = "unmount";
|
|
||||||
|
|
||||||
// fn parse_request(mut parts: std::str::SplitWhitespace<'_>) -> RequestParserResult<'_> {
|
|
||||||
// let path = parts
|
|
||||||
// .next()
|
|
||||||
// .ok_or(RequestParserError::UnexpectedEOF)?
|
|
||||||
// .to_string();
|
|
||||||
|
|
||||||
// debug_assert!(parts.next().is_none());
|
|
||||||
|
|
||||||
// Ok((Request::Unmount(path), ""))
|
|
||||||
// }
|
|
||||||
|
|
||||||
// fn parse_response(
|
|
||||||
// parts: ResponseAttributes<'_>,
|
|
||||||
// ) -> Result<Self::Response, ResponseParserError> {
|
|
||||||
// debug_assert!(parts.is_empty());
|
|
||||||
// Ok(())
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
pub struct ListMounts;
|
pub struct ListMounts;
|
||||||
|
|
||||||
impl Command for ListMounts {
|
impl Command for ListMounts {
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
use crate::{
|
use crate::{
|
||||||
commands::{
|
commands::{Command, RequestParserResult, ResponseAttributes, ResponseParserError},
|
||||||
Command, RequestParserResult, ResponseAttributes, ResponseParserError,
|
|
||||||
},
|
|
||||||
Request,
|
Request,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user