pub enum Query<'d, P = Owner<'d, Tuning>> {
Ready(Descriptor<'d>, Option<u32>),
Pending(P),
}Expand description
The same descriptor and its observed peer UID, or its pending native owner.
Variants§
Ready(Descriptor<'d>, Option<u32>)
Pending(P)
Implementations§
Source§impl<'d> Query<'d>
impl<'d> Query<'d>
pub fn complete<'slot>( owner: Occupied<'slot, Owner<'d, Tuning>>, done: &Entry<Complete<'d>, Tuning, Result<u32, Errno>>, ) -> Result<(Occupied<'slot, Descriptor<'d>>, Result<Option<u32>, Errno>), Occupied<'slot, Owner<'d, Tuning>>>
pub fn try_new<Tag: Tag + Select<Tuning>>( driver: &mut Local<'d>, slots: &Slots<'d, Tag>, target: Target<'d, Tag>, fd: Descriptor<'d>, ) -> Result<Self, Rejection<'d>>
Trait Implementations§
Auto Trait Implementations§
impl<'d, P = Owner<'d, Tuning>> !RefUnwindSafe for Query<'d, P>
impl<'d, P = Owner<'d, Tuning>> !Send for Query<'d, P>
impl<'d, P = Owner<'d, Tuning>> !Sync for Query<'d, P>
impl<'d, P = Owner<'d, Tuning>> !UnwindSafe for Query<'d, P>
impl<'d, P> Forget for Query<'d, P>
impl<'d, P> Freeze for Query<'d, P>where
Root<'d, Shared<Context<Receive>>>: Freeze,
PhantomData<(fn(&'d ()) -> &'d (), ThreadBound)>: Freeze,
PhantomData<Active>: Freeze,
Identity<'d>: Freeze,
PhantomData<Open>: Freeze,
P: Freeze,
impl<'d, P> Move for Query<'d, P>
impl<'d, P> Unpin for Query<'d, P>
impl<'d, P> UnsafeUnpin for Query<'d, P>where
Root<'d, Shared<Context<Receive>>>: UnsafeUnpin,
PhantomData<(fn(&'d ()) -> &'d (), ThreadBound)>: UnsafeUnpin,
PhantomData<Active>: UnsafeUnpin,
Identity<'d>: UnsafeUnpin,
PhantomData<Open>: UnsafeUnpin,
P: UnsafeUnpin,
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