Struct InspectFrame
pub struct InspectFrame<B, F> { /* private fields */ }
Body returned by the inspect_frame() combinator.
Implementations
impl<B, F> InspectFrame<B, F>
fn get_ref(&self) -> &BGet a reference to the inner body
fn get_mut(&mut self) -> &mut BGet a mutable reference to the inner body
fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut B>Get a pinned mutable reference to the inner body
fn into_inner(self) -> BConsume
self, returning the inner body
Trait Implementations
impl<'__pin, B, F> Unpin for InspectFrame<B, F>
where
PinnedFieldsOf<__Origin<'__pin, B, F>>: Unpin,
impl<B, F> Body for InspectFrame<B, F>
where
B: Body,
F: FnMut(&Frame<B::Data>),
type Data = <B as Body>::Data;type Error = <B as Body>::Error;fn poll_frame(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Result<Frame<Self::Data>, Self::Error>>>fn size_hint(&self) -> SizeHintfn is_end_stream(&self) -> bool
impl<B, F> Debug for InspectFrame<B, F>
where
B: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<B: Clone, F: Clone> Clone for InspectFrame<B, F>
fn clone(&self) -> InspectFrame<B, F>
impl<B: Copy, F: Copy> Copy for InspectFrame<B, F>
Auto Trait Implementations
impl<B, F> Freeze for InspectFrame<B, F>
where
B: Freeze,
F: Freeze,
impl<B, F> RefUnwindSafe for InspectFrame<B, F>
where
B: RefUnwindSafe,
F: RefUnwindSafe,
impl<B, F> Send for InspectFrame<B, F>
where
B: Send,
F: Send,
impl<B, F> Sync for InspectFrame<B, F>
where
B: Sync,
F: Sync,
impl<B, F> UnsafeUnpin for InspectFrame<B, F>
where
B: UnsafeUnpin,
F: UnsafeUnpin,
impl<B, F> UnwindSafe for InspectFrame<B, F>
where
B: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for InspectFrame<B, F>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> BodyExt for InspectFrame<B, F>
where
T: Body + ?Sized,
impl<T> Borrow<T> for InspectFrame<B, F>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for InspectFrame<B, F>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for InspectFrame<B, F>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for InspectFrame<B, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for InspectFrame<B, F>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for InspectFrame<B, F>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for InspectFrame<B, F>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for InspectFrame<B, F>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>