pub fn read_split(
            &self,
            bytes: &mut Vec<u8>,
            handles: &mut Vec<Handle>,
        ) -> Result<(), zx_status::Status> {
            with_handle(self.0, |obj| match obj {
                FidlHandle::LeftChannel(cs, _) => match *cs.lock() {
                    ChannelState::Closed => Err(zx_status::Status::PEER_CLOSED),
                    ChannelState::Open(ref mut st, _) => Self::dequeue_read(st, bytes, handles),
                },
                FidlHandle::RightChannel(cs, _) => match *cs.lock() {
                    ChannelState::Closed => Err(zx_status::Status::PEER_CLOSED),
                    ChannelState::Open(_, ref mut st) => Self::dequeue_read(st, bytes, handles),
                },
                _ => panic!("Non channel passed to Channel::read_split"),
            })
        }
/// Read a message from a channel into a separate byte vector and handle vector.
Read a message from a channel into a separate byte vector and handle vector.
Read a message from a channel into a separate byte vector and handle vector .
pub fn read_split(
            &self,
            bytes: &mut Vec<u8>,
            handles: &mut Vec<Handle>,
        ) -> Result<(), zx_status::Status> {
            with_handle(self.0, |obj| match obj {
                FidlHandle::LeftChannel(cs, _) => match *cs.lock() {
                    ChannelState::Closed => Err(zx_status::Status::PEER_CLOSED),
                    ChannelState::Open(ref mut st, _) => Self::dequeue_read(st, bytes, handles),
                },
                FidlHandle::RightChannel(cs, _) => match *cs.lock() {
                    ChannelState::Closed => Err(zx_status::Status::PEER_CLOSED),
                    ChannelState::Open(_, ref mut st) => Self::dequeue_read(st, bytes, handles),
                },
                _ => panic!("Non channel passed to Channel::read_split"),
            })
        }
pub fn read_split ( & self , bytes : & mut Vec < u8 > , handles : & mut Vec < Handle > , ) -> Result < ( ) , zx_status :: Status > { with_handle ( self . 0 , | obj | match obj { FidlHandle :: LeftChannel ( cs , _ ) => match * cs . lock ( ) { ChannelState :: Closed => Err ( zx_status :: Status :: PEER_CLOSED ) , ChannelState :: Open ( ref mut st , _ ) => Self :: dequeue_read ( st , bytes , handles ) , } , FidlHandle :: RightChannel ( cs , _ ) => match * cs . lock ( ) { ChannelState :: Closed => Err ( zx_status :: Status :: PEER_CLOSED ) , ChannelState :: Open ( _ , ref mut st ) => Self :: dequeue_read ( st , bytes , handles ) , } , _ => panic ! ( " " ) , } ) }
Read a message from a channel into a separate byte vector and handle vector.
Read a message from a channel into a separate byte vector and handle vector .
&self
bytes
&mut Vec<u8>
handles
&mut Vec<Handle>
&self
bytes
&mut Vec<u8>
handles
&mut Vec<Handle>