pub enum Storage {
Bytes(Bytes),
BytesMut(BytesMut),
Params(Params),
KVLines(KVLines),
File(PathBuf),
LocalFile(PathBuf),
}Expand description
Storage buffer for metadata and payload.
Variants§
Bytes(Bytes)
Return data as a bytes::Bytes buffer.
BytesMut(BytesMut)
Return data as a bytes::BytesMut buffer.
Params(Params)
Return data as a parsed Params buffer.
KVLines(KVLines)
Return data as a parsed KVLines buffer.
File(PathBuf)
A file whose location was requested by the application.
LocalFile(PathBuf)
A file whose location was specified by DDMW. It is the responsibility of the application to move the file from its current location to an application specific storage, or delete the file if it is not relevant.
Auto Trait Implementations§
impl !Freeze for Storage
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
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