pub struct BatchResult {
pub relative_path: PathBuf,
pub body: Result<Vec<u8>, ServerError>,
}Available on crate feature
batch only.Expand description
Batch operation result.
§Examples
use http_handle::batch::BatchResult;
use http_handle::ServerError;
use std::path::PathBuf;
let result = BatchResult { relative_path: PathBuf::from("a.txt"), body: Ok(Vec::new()) };
assert!(result.body.is_ok());
let _unused: Result<Vec<u8>, ServerError> = Ok(Vec::new());§Panics
This type does not panic.
Fields§
§relative_path: PathBufRequested relative path.
body: Result<Vec<u8>, ServerError>Read bytes if successful.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchResult
impl !RefUnwindSafe for BatchResult
impl Send for BatchResult
impl Sync for BatchResult
impl Unpin for BatchResult
impl UnsafeUnpin for BatchResult
impl !UnwindSafe for BatchResult
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