pub struct ResponseWriter<'c, W: Write> { /* private fields */ }Implementations§
Source§impl<'c, W: Write> ResponseWriter<'c, W>
impl<'c, W: Write> ResponseWriter<'c, W>
pub fn respond<'t, T>( self, val: &'t T, ) -> Result<WriteFrame<'c, W>, PacketFrameWriteError>
pub fn progress_with<RESP: Serialize>( &mut self, resp: RESP, ) -> Result<(), PacketFrameWriteError>
Auto Trait Implementations§
impl<'c, W> Freeze for ResponseWriter<'c, W>
impl<'c, W> RefUnwindSafe for ResponseWriter<'c, W>where
W: RefUnwindSafe,
impl<'c, W> Send for ResponseWriter<'c, W>where
W: Send,
impl<'c, W> Sync for ResponseWriter<'c, W>where
W: Sync,
impl<'c, W> Unpin for ResponseWriter<'c, W>
impl<'c, W> UnsafeUnpin for ResponseWriter<'c, W>
impl<'c, W> !UnwindSafe for ResponseWriter<'c, W>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more