pub(crate) struct Sender {
shared: Arc<Shared>,
trailers_sent: bool,
}Fields§
§trailers_sent: boolImplementations§
Source§impl Sender
impl Sender
pub(crate) fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<()>>
pub(crate) fn try_send_data(&mut self, chunk: Bytes) -> Result<(), Bytes>
pub(crate) fn try_send_trailers( &mut self, trailers: HeaderMap, ) -> Result<(), Option<HeaderMap>>
pub(crate) async fn send_trailers(&mut self, trailers: HeaderMap) -> Result<()>
pub(crate) fn send_error(&mut self, err: Error)
fn is_closed(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sender
impl !RefUnwindSafe for Sender
impl Send for Sender
impl Sync for Sender
impl Unpin for Sender
impl UnsafeUnpin for Sender
impl !UnwindSafe for Sender
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