pub struct FrameParser<T: Command> { /* private fields */ }
Implementations§
Source§impl<T: Command + Clone> FrameParser<T>
impl<T: Command + Clone> FrameParser<T>
pub fn new() -> FrameParser<T>
pub fn parse(&mut self, body: &[u8]) -> Result<Vec<StompMessage<T>>, ParseError>
Auto Trait Implementations§
impl<T> Freeze for FrameParser<T>where
T: Freeze,
impl<T> RefUnwindSafe for FrameParser<T>where
T: RefUnwindSafe,
impl<T> Send for FrameParser<T>where
T: Send,
impl<T> Sync for FrameParser<T>where
T: Sync,
impl<T> Unpin for FrameParser<T>where
T: Unpin,
impl<T> UnwindSafe for FrameParser<T>where
T: 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