pub struct Encoder { /* private fields */ }Expand description
Encoder for FAST protocol messages.
Implementations§
Source§impl Encoder
impl Encoder
pub fn new_from_xml(text: &str) -> Result<Self>
pub fn reset(&mut self)
pub fn encode_vec(&mut self, msg: &mut impl MessageVisitor) -> Result<Vec<u8>>
pub fn encode_bytes( &mut self, msg: &mut impl MessageVisitor, ) -> Result<BytesMut>
pub fn encode_stream( &mut self, wrt: &mut dyn Write, msg: &mut impl MessageVisitor, ) -> Result<()>
pub fn encode_writer( &mut self, wrt: &mut impl Writer, msg: &mut impl MessageVisitor, ) -> Result<()>
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