Struct UnsyncBoxBody
pub struct UnsyncBoxBody<D, E> { /* private fields */ }
A boxed Body trait object that is !Sync.
Implementations
impl<D, E> UnsyncBoxBody<D, E>
fn new<B>(body: B) -> Self where B: Body<Data = D, Error = E> + Send + 'static, D: Buf,Create a new
UnsyncBoxBody.
Trait Implementations
impl<D, E> Body for UnsyncBoxBody<D, E>
where
D: Buf,
type Data = D;type Error = E;fn poll_frame(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Result<Frame<Self::Data>, Self::Error>>>fn is_end_stream(&self) -> boolfn size_hint(&self) -> SizeHint
impl<D, E> Debug for UnsyncBoxBody<D, E>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<D, E> Default for UnsyncBoxBody<D, E>
where
D: Buf + 'static,
fn default() -> Self
Auto Trait Implementations
impl<D, E> !RefUnwindSafe for UnsyncBoxBody<D, E>
impl<D, E> !Sync for UnsyncBoxBody<D, E>
impl<D, E> !UnwindSafe for UnsyncBoxBody<D, E>
impl<D, E> Freeze for UnsyncBoxBody<D, E>
where
Pin<Box<dyn Body<Data = D, Error = E> + Send>>: Freeze,
impl<D, E> Send for UnsyncBoxBody<D, E>
where
Pin<Box<dyn Body<Data = D, Error = E> + Send>>: Send,
impl<D, E> Unpin for UnsyncBoxBody<D, E>
where
Pin<Box<dyn Body<Data = D, Error = E> + Send>>: Unpin,
impl<D, E> UnsafeUnpin for UnsyncBoxBody<D, E>
where
Pin<Box<dyn Body<Data = D, Error = E> + Send>>: UnsafeUnpin,
Blanket Implementations
impl<T> Any for UnsyncBoxBody<D, E>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> BodyExt for UnsyncBoxBody<D, E>
where
T: Body + ?Sized,
impl<T> Borrow<T> for UnsyncBoxBody<D, E>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for UnsyncBoxBody<D, E>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for UnsyncBoxBody<D, E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for UnsyncBoxBody<D, E>
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 UnsyncBoxBody<D, E>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for UnsyncBoxBody<D, E>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>