Trait rmp_serde::encode::UnderlyingWrite

source ·
pub trait UnderlyingWrite {
    type Write: Write;

    // Required methods
    fn get_ref(&self) -> &Self::Write;
    fn get_mut(&mut self) -> &mut Self::Write;
    fn into_inner(self) -> Self::Write;
}
Expand description

Obtain the underlying writer.

Required Associated Types§

source

type Write: Write

Underlying writer type.

Required Methods§

source

fn get_ref(&self) -> &Self::Write

Gets a reference to the underlying writer.

source

fn get_mut(&mut self) -> &mut Self::Write

Gets a mutable reference to the underlying writer.

It is inadvisable to directly write to the underlying writer.

source

fn into_inner(self) -> Self::Write

Unwraps this Serializer, returning the underlying writer.

Implementors§

source§

impl<W: Write, C> UnderlyingWrite for Serializer<W, C>

§

type Write = W