[−][src]Type Definition pagecache::CasResult
type CasResult<'a, P, R> = Result<PagePtr<'a, P>, Option<(PagePtr<'a, P>, R)>>;
A compare and swap result. If the CAS is successful,
the new PagePtr
will be returned as Ok
. Otherwise,
the Err
will contain a tuple of the current PagePtr
and the old value that could not be set atomically.