[−][src]Struct rouille::input::post::BufferedFile
Implementation of the DecodePostField
that puts the body of the file in memory.
Fields
data: Vec<u8>
The file's data.
mime: String
The MIME type. Remember that this shouldn't be blindly trusted.
filename: Option<String>
The name of the file, if known. Remember that this shouldn't be blindly trusted.
Trait Implementations
impl DecodePostField<()> for BufferedFile
[src]
impl DecodePostField<()> for BufferedFile
fn from_field(_: (), _: &str) -> Result<Self, PostFieldError>
[src]
fn from_field(_: (), _: &str) -> Result<Self, PostFieldError>
fn from_file<R>(
_: (),
file: R,
filename: Option<&str>,
mime: &str
) -> Result<Self, PostFieldError> where
R: BufRead,
[src]
fn from_file<R>(
_: (),
file: R,
filename: Option<&str>,
mime: &str
) -> Result<Self, PostFieldError> where
R: BufRead,
fn merge_multiple(self, _existing: Self) -> Result<Self, PostFieldError> where
Self: Sized,
[src]
fn merge_multiple(self, _existing: Self) -> Result<Self, PostFieldError> where
Self: Sized,
When multiple fields with the same name are found in the client's input, rouille will build an object for each of them and then merge them with this method. Read more
fn not_found(_: Config) -> Result<Self, PostFieldError> where
Self: Sized,
[src]
fn not_found(_: Config) -> Result<Self, PostFieldError> where
Self: Sized,
Called when no field is found in the POST input. Read more
impl Clone for BufferedFile
[src]
impl Clone for BufferedFile
fn clone(&self) -> BufferedFile
[src]
fn clone(&self) -> BufferedFile
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for BufferedFile
[src]
impl Debug for BufferedFile
Auto Trait Implementations
impl Send for BufferedFile
impl Send for BufferedFile
impl Sync for BufferedFile
impl Sync for BufferedFile
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId