pub struct Part<R> { /* private fields */ }
Implementations§
Source§impl<'a> Part<SendRead<'a>>
impl<'a> Part<SendRead<'a>>
pub fn new<S: Into<String>, R: AsyncRead + Send + 'a>( name: S, reader: R, ) -> Self
pub fn new_unsend<S: Into<String>, R: AsyncRead + 'a>( name: S, reader: R, ) -> Part<UnsendRead<'a>>
pub fn new_str<S: Into<String>>(name: S, text: &'a str) -> Self
pub fn new_string<S1: Into<String>, S2: Into<String>>( name: S1, text: S2, ) -> Self
pub fn content_type(self, content_type: Mime) -> Self
pub fn filename<S: Into<String>>(self, filename: S) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Part<R>where
R: Freeze,
impl<R> RefUnwindSafe for Part<R>where
R: RefUnwindSafe,
impl<R> Send for Part<R>where
R: Send,
impl<R> Sync for Part<R>where
R: Sync,
impl<R> Unpin for Part<R>where
R: Unpin,
impl<R> UnwindSafe for Part<R>where
R: UnwindSafe,
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