pub enum SharedValue {
}Expand description
Interpreter-neutral payload that can be materialized in any interpreter
sharing the process-wide crate::Context.
Variants§
None
Bool(bool)
Int(isize)
Float(f64)
Bytes(Vec<u8>)
Str(Wtf8Buf)
Tuple(Vec<Self>)
Channel
Queue(SharedQueueId)
Buffer(Vec<u8>, BufferDescriptor)
Code(Vec<u8>)
Marshalled code object.
Function(Vec<u8>)
Marshalled code of a stateless function; rebuilt against __main__.
Pickled(PickledData)
pickle.dumps output, used by Fallback::Full.
Implementations§
pub fn from_object( obj: &PyObject, fallback: Fallback, vm: &VirtualMachine, ) -> PyResult<Self>
Sourcepub fn from_callable(obj: &PyObject, vm: &VirtualMachine) -> PyResult<Self>
pub fn from_callable(obj: &PyObject, vm: &VirtualMachine) -> PyResult<Self>
_interp_call_pack’s handling of the callable: a stateless function
travels as its code, anything else is pickled.
pub fn from_buffer_object(obj: &PyObject, vm: &VirtualMachine) -> PyResult<Self>
pub fn into_object(self, vm: &VirtualMachine) -> PyResult
Trait Implementations§
Auto Trait Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Helper for T
Source§impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
impl<T, U> ImaginaryInto<U> for Twhere
U: ImaginaryFrom<T>,
fn imaginary_into(self) -> U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more