pub struct FrameReader { /* private fields */ }
Implementations§
Source§impl FrameReader
impl FrameReader
pub fn new(recv: Arc<Mutex<RecvStream>>) -> Self
pub async fn read_frame(&self) -> Result<Frame>
Trait Implementations§
Source§impl Clone for FrameReader
impl Clone for FrameReader
Source§fn clone(&self) -> FrameReader
fn clone(&self) -> FrameReader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto 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