pub struct BrowseHandle { /* private fields */ }Expand description
Handle for receiving events from a single browse operation.
Implementations§
Source§impl BrowseHandle
impl BrowseHandle
Sourcepub fn new(rx: Receiver<BrowserEvent>) -> Self
pub fn new(rx: Receiver<BrowserEvent>) -> Self
Create a new handle from an mpsc receiver.
Sourcepub async fn recv(&mut self) -> Option<BrowserEvent>
pub async fn recv(&mut self) -> Option<BrowserEvent>
Receive the next event, or None if the browse stopped.
Auto Trait Implementations§
impl Freeze for BrowseHandle
impl RefUnwindSafe for BrowseHandle
impl Send for BrowseHandle
impl Sync for BrowseHandle
impl Unpin for BrowseHandle
impl UnsafeUnpin for BrowseHandle
impl UnwindSafe for BrowseHandle
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