pub struct OnionThreadHandle { /* private fields */ }Expand description
A wrapper around JoinHandle to make it work with OnionObject
Implementations§
Source§impl OnionThreadHandle
impl OnionThreadHandle
pub fn new( handle: JoinHandle<Result<Box<OnionStaticObject>, RuntimeError>>, ) -> Self
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Check if the thread has finished without blocking
Trait Implementations§
Source§impl Clone for OnionThreadHandle
impl Clone for OnionThreadHandle
Source§impl Debug for OnionThreadHandle
impl Debug for OnionThreadHandle
Source§impl OnionObjectExt for OnionThreadHandle
impl OnionObjectExt for OnionThreadHandle
fn as_any(&self) -> &dyn Any
fn repr(&self, _ptrs: &Vec<*const OnionObject>) -> Result<String, RuntimeError>
fn equals(&self, other: &OnionObject) -> Result<bool, RuntimeError>
fn upgrade(&self, _collected: &mut Vec<GCArc<OnionObjectCell>>)
fn reconstruct_container(&self) -> Result<OnionObject, RuntimeError>
fn is_same(&self, other: &OnionObject) -> Result<bool, RuntimeError>
fn to_boolean(&self) -> Result<bool, RuntimeError>
fn type_of(&self) -> Result<String, RuntimeError>
fn value_of(&self) -> Result<OnionStaticObject, RuntimeError>
fn with_attribute( &self, key: &OnionObject, f: &mut dyn FnMut(&OnionObject) -> Result<(), RuntimeError>, ) -> Result<(), RuntimeError>
fn to_integer(&self) -> Result<i64, RuntimeError>
fn to_float(&self) -> Result<f64, RuntimeError>
fn to_string( &self, ptrs: &Vec<*const OnionObject>, ) -> Result<String, RuntimeError>
fn to_bytes(&self) -> Result<Vec<u8>, RuntimeError>
fn len(&self) -> Result<OnionStaticObject, RuntimeError>
fn contains(&self, other: &OnionObject) -> Result<bool, RuntimeError>
fn at(&self, index: i64) -> Result<OnionStaticObject, RuntimeError>
fn key_of(&self) -> Result<OnionStaticObject, RuntimeError>
fn binary_eq(&self, other: &OnionObject) -> Result<bool, RuntimeError>
fn binary_lt(&self, other: &OnionObject) -> Result<bool, RuntimeError>
fn binary_gt(&self, other: &OnionObject) -> Result<bool, RuntimeError>
fn binary_add( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn binary_sub( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn binary_mul( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn binary_div( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn binary_mod( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn binary_pow( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn binary_and( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn binary_or( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn binary_xor( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn binary_shl( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn binary_shr( &self, other: &OnionObject, ) -> Result<OnionStaticObject, RuntimeError>
fn unary_neg(&self) -> Result<OnionStaticObject, RuntimeError>
fn unary_plus(&self) -> Result<OnionStaticObject, RuntimeError>
fn unary_not(&self) -> Result<OnionStaticObject, RuntimeError>
Auto Trait Implementations§
impl !Freeze for OnionThreadHandle
impl RefUnwindSafe for OnionThreadHandle
impl Send for OnionThreadHandle
impl Sync for OnionThreadHandle
impl Unpin for OnionThreadHandle
impl UnwindSafe for OnionThreadHandle
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