unsafe fn push_unchecked(&self, m: (MsgChannel, Vec<u8>)) -> Option<(MsgChannel, Vec<u8>)> {
        let (tx, rx) = channel();
        let c = m.0;
        let v = m.1;
        self.transaction(&move |data| {
            tx.send(data.get_channel_mut(c).push(v.clone())).unwrap();
        });
        rx.recv().unwrap().map(|v| (c, v))
    }
/// Send the data to the channel.
///
/// # Safety
/// This version does not check message validity and is thus marked unsafe.
Send the data to the channel.
Send the data to the channel .
unsafe fn push_unchecked(&self, m: (MsgChannel, Vec<u8>)) -> Option<(MsgChannel, Vec<u8>)> {
        let (tx, rx) = channel();
        let c = m.0;
        let v = m.1;
        self.transaction(&move |data| {
            tx.send(data.get_channel_mut(c).push(v.clone())).unwrap();
        });
        rx.recv().unwrap().map(|v| (c, v))
    }
unsafe fn push_unchecked ( & self , m : ( MsgChannel , Vec < u8 > ) ) -> Option < ( MsgChannel , Vec < u8 > ) > { let ( tx , rx ) = channel ( ) ; let c = m . 0 ; let v = m . 1 ; self . transaction ( & move | data | { tx . send ( data . get_channel_mut ( c ) . push ( v . clone ( ) ) ) . unwrap ( ) ; } ) ; rx . recv ( ) . unwrap ( ) . map ( | v | ( c , v ) ) }
Send the data to the channel.
Send the data to the channel .
&self
m
(MsgChannel, Vec<u8>)
&self
m
(MsgChannel, Vec<u8>)
safety
This version does not check message validity and is thus marked unsafe.
This version does not check message validity and is thus marked unsafe .