pub struct Inner { /* private fields */ }
Expand description
§内部
Implementations§
Source§impl Inner
impl Inner
Sourcepub fn path<P>(self, path: P) -> Result<Self, InvalidObjectPath>
pub fn path<P>(self, path: P) -> Result<Self, InvalidObjectPath>
设置 ObjectPath
Sourcepub fn content_type(&mut self, content_type: &'static str)
pub fn content_type(&mut self, content_type: &'static str)
设置 content_type
Sourcepub fn part_clear(&mut self)
pub fn part_clear(&mut self)
清空缓冲区
Trait Implementations§
Source§impl Seek for Inner
impl Seek for Inner
Source§fn seek(&mut self, pos: SeekFrom) -> IoResult<u64>
fn seek(&mut self, pos: SeekFrom) -> IoResult<u64>
Seek to an offset, in bytes, in a stream. Read more
1.55.0 · Source§fn rewind(&mut self) -> Result<(), Error>
fn rewind(&mut self) -> Result<(), Error>
Rewind to the beginning of a stream. Read more
Source§fn stream_len(&mut self) -> Result<u64, Error>
fn stream_len(&mut self) -> Result<u64, Error>
🔬This is a nightly-only experimental API. (
seek_stream_len
)Returns the length of this stream (in bytes). Read more
impl Eq for Inner
impl StructuralPartialEq for Inner
Auto Trait Implementations§
impl Freeze for Inner
impl RefUnwindSafe for Inner
impl Send for Inner
impl Sync for Inner
impl Unpin for Inner
impl UnwindSafe for Inner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.