Trait sauron::prelude::AttValueMapMsg[][src]

pub trait AttValueMapMsg<MSG> where
    MSG: 'static, 
{ fn map_callback<MSG2>(
        self,
        cb: Callback<MSG, MSG2>
    ) -> AttValue<AttributeValue, Callback<Event, MSG2>>
    where
        MSG2: 'static
;
fn get_callback(&self) -> Option<&Callback<Event, MSG>>;
fn is_callback(&self) -> bool; }
Expand description

Add mapping function for AttValue

Required methods

transform att_value such that MSG becomes MSG2

return a reference to the callback if it is a callback

return true if this is a callback

Implementors