pub struct FrameReader {
read: ReadHalf<MaybeTlsStream<TcpStream>>,
buf: Vec<u8>,
max_frame_size: usize,
}Expand description
Read half of a connected STOMP socket.
Bytes accumulate in an internal buffer until
decode_one_with_limit can take one frame. The cap is
StompConfig::max_frame_size.
Fields§
§read: ReadHalf<MaybeTlsStream<TcpStream>>§buf: Vec<u8>§max_frame_size: usizeImplementations§
Source§impl FrameReader
impl FrameReader
Auto Trait Implementations§
impl Freeze for FrameReader
impl RefUnwindSafe for FrameReader
impl Send for FrameReader
impl Sync for FrameReader
impl Unpin for FrameReader
impl UnwindSafe for FrameReader
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