pub struct Results<T> {
pub marker: PhantomData<T>,
pub hook: Box<dyn ResultsHook>,
}Expand description
The return values of a method, written in-place by the method body.
Fields§
§marker: PhantomData<T>§hook: Box<dyn ResultsHook>Implementations§
Source§impl<T> Results<T>where
T: Owned,
impl<T> Results<T>where
T: Owned,
pub fn new(hook: Box<dyn ResultsHook>) -> Self
pub fn get(&mut self) -> T::Builder<'_>
pub fn set(&mut self, other: T::Reader<'_>) -> Result<()>
Sourcepub fn set_pipeline(&mut self) -> Result<()>
pub fn set_pipeline(&mut self) -> Result<()>
Call this method to signal that all of the capabilities have been filled in for this
Results and that pipelined calls should be allowed to start using those capabilities.
(Usually pipelined calls are enqueued until the initial call completes.)
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Results<T>
impl<T> !Send for Results<T>
impl<T> !Sync for Results<T>
impl<T> !UnwindSafe for Results<T>
impl<T> Freeze for Results<T>where
PhantomData<T>: Freeze,
impl<T> Unpin for Results<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for Results<T>where
PhantomData<T>: 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