pub struct DecodedFetchBody { /* private fields */ }Expand description
Normalized body ready for a provider-neutral super::FetchResult.
Implementations§
Source§impl DecodedFetchBody
impl DecodedFetchBody
Sourcepub const fn kind(&self) -> FetchContentKind
pub const fn kind(&self) -> FetchContentKind
Returns the canonical content kind.
Sourcepub const fn truncation(&self) -> Option<FetchTruncationReason>
pub const fn truncation(&self) -> Option<FetchTruncationReason>
Returns the output truncation reason.
Sourcepub const fn decoded_bytes(&self) -> usize
pub const fn decoded_bytes(&self) -> usize
Returns bytes after content-encoding decompression.
Trait Implementations§
Source§impl Clone for DecodedFetchBody
impl Clone for DecodedFetchBody
Source§impl Debug for DecodedFetchBody
impl Debug for DecodedFetchBody
impl Eq for DecodedFetchBody
Source§impl PartialEq for DecodedFetchBody
impl PartialEq for DecodedFetchBody
impl StructuralPartialEq for DecodedFetchBody
Auto Trait Implementations§
impl Freeze for DecodedFetchBody
impl RefUnwindSafe for DecodedFetchBody
impl Send for DecodedFetchBody
impl Sync for DecodedFetchBody
impl Unpin for DecodedFetchBody
impl UnsafeUnpin for DecodedFetchBody
impl UnwindSafe for DecodedFetchBody
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.