pub struct FrameReceiver { /* private fields */ }Expand description
Decodes gateway frames while retaining Guatiao channel schemas.
Implementations§
Source§impl FrameReceiver
impl FrameReceiver
Sourcepub fn accept(
&mut self,
bytes: &[u8],
) -> Result<Option<IncomingFrame>, FrameDecodeError>
pub fn accept( &mut self, bytes: &[u8], ) -> Result<Option<IncomingFrame>, FrameDecodeError>
Accepts one Guatiao frame. Schema announcements return None.
Trait Implementations§
Source§impl Debug for FrameReceiver
impl Debug for FrameReceiver
Auto Trait Implementations§
impl !Send for FrameReceiver
impl !Sync for FrameReceiver
impl Freeze for FrameReceiver
impl RefUnwindSafe for FrameReceiver
impl Unpin for FrameReceiver
impl UnsafeUnpin for FrameReceiver
impl UnwindSafe for FrameReceiver
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