pub struct FrameWriter<W: Write> { /* private fields */ }Implementations§
Source§impl<W: Write> FrameWriter<W>
impl<W: Write> FrameWriter<W>
pub fn new(w: W) -> FrameWriter<W>
pub fn into_stream(self) -> Result<Fuse<W>, Error>
pub fn new_frame<'w>(&'w mut self) -> Result<WriteFrame<'w, W>, Error>
pub fn flush(&mut self) -> Result<(), Error>
pub fn write_withbulk<'c>( &'c mut self, ) -> Result<ResponseWriter<'c, W>, PacketFrameWriteError>
pub fn write<T>(&mut self, val: &T) -> Result<(), PacketFrameWriteError>
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for FrameWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for FrameWriter<W>where
W: RefUnwindSafe,
impl<W> Send for FrameWriter<W>where
W: Send,
impl<W> Sync for FrameWriter<W>where
W: Sync,
impl<W> Unpin for FrameWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for FrameWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for FrameWriter<W>where
W: UnwindSafe,
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