pub struct StreamBody {
pub size: Option<u64>,
pub eight_bit: bool,
}Expand description
How a streamed message body will be sent; see Connection::start_send.
Fields§
§size: Option<u64>Expected normalized content octets, sent as the SIZE parameter when the
server supports it and checked against the server’s advertised limit.
None omits the parameter. The server, not this core, enforces it.
eight_bit: boolThe body may contain 8-bit bytes: sends BODY=8BITMIME, which the server must support. Without it, a non-ASCII chunk fails the transaction.
Trait Implementations§
Source§impl Clone for StreamBody
impl Clone for StreamBody
impl Copy for StreamBody
Source§impl Debug for StreamBody
impl Debug for StreamBody
Source§impl Default for StreamBody
impl Default for StreamBody
impl Eq for StreamBody
Source§impl PartialEq for StreamBody
impl PartialEq for StreamBody
impl StructuralPartialEq for StreamBody
Auto Trait Implementations§
impl Forget for StreamBody
impl Freeze for StreamBody
impl RefUnwindSafe for StreamBody
impl Send for StreamBody
impl Sync for StreamBody
impl Unpin for StreamBody
impl UnsafeUnpin for StreamBody
impl UnwindSafe for StreamBody
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