Struct ctrlgen::support::LocalRetval
source · pub struct LocalRetval;
Trait Implementations§
source§impl Returnval for LocalRetval
impl Returnval for LocalRetval
type Sender<T> = Rc<RefCell<Option<T>>, Global>
type Receiver<T> = Rc<RefCell<Option<T>>, Global>
type SendError = Infallible
type RecvResult<T> = <LocalRetval as Returnval>::Receiver<T>
fn create<T>() -> (Self::Sender<T>, Self::Receiver<T>)
fn recv<T>(rx: Self::Receiver<T>) -> Self::RecvResult<T>
fn send<T>(tx: Self::Sender<T>, msg: T) -> Result<(), Self::SendError>
Auto Trait Implementations§
impl RefUnwindSafe for LocalRetval
impl Send for LocalRetval
impl Sync for LocalRetval
impl Unpin for LocalRetval
impl UnwindSafe for LocalRetval
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