pub struct Encoder {
state: State,
}Fields§
§state: StateImplementations§
Source§impl Encoder
impl Encoder
Sourcepub fn do_poll_read(
&mut self,
output: &mut WriteBuffer<'_>,
encoder: &mut dyn EncodeV2,
input: Option<&mut PartialBuffer<&[u8]>>,
) -> ControlFlow<Result<()>>
pub fn do_poll_read( &mut self, output: &mut WriteBuffer<'_>, encoder: &mut dyn EncodeV2, input: Option<&mut PartialBuffer<&[u8]>>, ) -> ControlFlow<Result<()>>
input - should be None if Poll::Pending.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
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