pub struct Incoming<I> { /* private fields */ }
Expand description
The incoming request queue.
Implementations§
Source§impl<I> Incoming<I>
impl<I> Incoming<I>
Sourcepub fn register(&mut self, id: RequestId, data: I)
pub fn register(&mut self, id: RequestId, data: I)
Registers a request with the given ID and data.
Sourcepub fn has_pending(&self) -> bool
pub fn has_pending(&self) -> bool
Checks if there are any pending requests.
This is useful for testing language server.
Sourcepub fn is_completed(&self, id: &RequestId) -> bool
pub fn is_completed(&self, id: &RequestId) -> bool
Checks if a request with the given ID is completed.
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for Incoming<I>
impl<I> RefUnwindSafe for Incoming<I>where
I: RefUnwindSafe,
impl<I> Send for Incoming<I>where
I: Send,
impl<I> Sync for Incoming<I>where
I: Sync,
impl<I> Unpin for Incoming<I>where
I: Unpin,
impl<I> UnwindSafe for Incoming<I>where
I: 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