pub struct PyCallableHandler { /* private fields */ }Expand description
Adapts a Python callable as a ShareableMessageHandler.
Expects messages to be PyMessage instances. Acquires the GIL and calls
the Python callable with the inner Python object.
Implementations§
Trait Implementations§
Source§impl Debug for PyCallableHandler
impl Debug for PyCallableHandler
Auto Trait Implementations§
impl !RefUnwindSafe for PyCallableHandler
impl Freeze for PyCallableHandler
impl Send for PyCallableHandler
impl Sync for PyCallableHandler
impl Unpin for PyCallableHandler
impl UnsafeUnpin for PyCallableHandler
impl UnwindSafe for PyCallableHandler
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