[][src]Trait lifeline::Storage

pub trait Storage: Sized + 'static {
    fn take_or_clone(res: &mut Option<Self>) -> Option<Self>;

    fn clone_slot(res: &mut Option<Self>) -> Option<Self>
    where
        Self: Clone
, { ... }
fn take_slot(res: &mut Option<Self>) -> Option<Self> { ... } }

Required methods

fn take_or_clone(res: &mut Option<Self>) -> Option<Self>

If Self::Tx implements clone, clone it. Otherwise use Option::take

Loading content...

Provided methods

fn clone_slot(res: &mut Option<Self>) -> Option<Self> where
    Self: Clone

fn take_slot(res: &mut Option<Self>) -> Option<Self>

Loading content...

Implementations on Foreign Types

impl<T: Send + 'static> Storage for Sender<T>[src]

impl<T: Send + 'static> Storage for Receiver<T>[src]

impl<T: Send + 'static> Storage for Sender<T>[src]

impl<T: Send + 'static> Storage for Receiver<T>[src]

impl<T: Send + 'static> Storage for Sender<T>[src]

impl<T: Send + 'static> Storage for Receiver<T>[src]

impl<T: Send + 'static> Storage for Sender<T>[src]

impl<T: Send + 'static> Storage for Receiver<T>[src]

impl<T: Send + 'static> Storage for Sender<T>[src]

impl<T: Send + 'static> Storage for Receiver<T>[src]

impl<T: Send + 'static> Storage for Sender<T>[src]

impl<T: Send + 'static> Storage for Receiver<T>[src]

Loading content...

Implementors

impl<T: Send + 'static> Storage for lifeline::subscription::Receiver<T>[src]

impl<T: Send + 'static> Storage for lifeline::subscription::Sender<T>[src]

Loading content...