Lines Matching refs:Steal
610 pub fn steal(&self) -> Steal<T> { in steal()
630 return Steal::Empty; in steal()
646 return Steal::Retry; in steal()
650 Steal::Success(task) in steal()
676 pub fn steal_batch(&self, dest: &Worker<T>) -> Steal<()> { in steal_batch() argument
679 return Steal::Empty; in steal_batch()
681 return Steal::Success(()); in steal_batch()
705 return Steal::Empty; in steal_batch()
755 return Steal::Retry; in steal_batch()
808 return Steal::Retry; in steal_batch()
836 Steal::Success(()) in steal_batch()
861 pub fn steal_batch_and_pop(&self, dest: &Worker<T>) -> Steal<T> { in steal_batch_and_pop()
864 None => return Steal::Empty, in steal_batch_and_pop()
865 Some(task) => return Steal::Success(task), in steal_batch_and_pop()
889 return Steal::Empty; in steal_batch_and_pop()
944 return Steal::Retry; in steal_batch_and_pop()
961 return Steal::Retry; in steal_batch_and_pop()
1033 Steal::Success(task) in steal_batch_and_pop()
1302 pub fn steal(&self) -> Steal<T> { in steal()
1331 return Steal::Empty; in steal()
1347 return Steal::Retry; in steal()
1374 Steal::Success(task) in steal()
1399 pub fn steal_batch(&self, dest: &Worker<T>) -> Steal<()> { in steal_batch() argument
1429 return Steal::Empty; in steal_batch()
1458 return Steal::Retry; in steal_batch()
1534 Steal::Success(()) in steal_batch()
1558 pub fn steal_batch_and_pop(&self, dest: &Worker<T>) -> Steal<T> { in steal_batch_and_pop()
1588 return Steal::Empty; in steal_batch_and_pop()
1616 return Steal::Retry; in steal_batch_and_pop()
1698 Steal::Success(task) in steal_batch_and_pop()
1834 pub enum Steal<T> { enum
1845 impl<T> Steal<T> { impl
1860 Steal::Empty => true, in is_empty()
1879 Steal::Success(_) => true, in is_success()
1898 Steal::Retry => true, in is_retry()
1917 Steal::Success(res) => Some(res), in success()
1943 pub fn or_else<F>(self, f: F) -> Steal<T> in or_else()
1945 F: FnOnce() -> Steal<T>, in or_else()
1948 Steal::Empty => f(), in or_else()
1949 Steal::Success(_) => self, in or_else()
1950 Steal::Retry => { in or_else()
1951 if let Steal::Success(res) = f() { in or_else()
1952 Steal::Success(res) in or_else()
1954 Steal::Retry in or_else()
1961 impl<T> fmt::Debug for Steal<T> { implementation
1964 Steal::Empty => f.pad("Empty"), in fmt()
1965 Steal::Success(_) => f.pad("Success(..)"), in fmt()
1966 Steal::Retry => f.pad("Retry"), in fmt()
1971 impl<T> FromIterator<Steal<T>> for Steal<T> { implementation
1976 fn from_iter<I>(iter: I) -> Steal<T> in from_iter()
1978 I: IntoIterator<Item = Steal<T>>, in from_iter()
1983 Steal::Empty => {} in from_iter()
1984 Steal::Success(_) => return s, in from_iter()
1985 Steal::Retry => retry = true, in from_iter()
1990 Steal::Retry in from_iter()
1992 Steal::Empty in from_iter()