pub fn update_clipboard(&mut self, data: Vec<u8>) -> RdpResult<Vec<u8>> {
        self.clipboard
            .insert(ClipboardFormat::CF_OEMTEXT as u32, data);

        encode_message(
            ClipboardPDUType::CB_FORMAT_LIST,
            FormatListPDU {
                format_names: vec![LongFormatName::id(ClipboardFormat::CF_OEMTEXT as u32)],
            }
            .encode()?,
        )
    }
/// update_clipboard is invoked from Go.
/// It updates the local clipboard cache and returns the encoded message
/// that should be sent to the RDP server.
update_clipboard is invoked from Go.
It updates the local clipboard cache and returns the encoded message
that should be sent to the RDP server.
update_clipboard is invoked from Go . It updates the local clipboard cache and returns the encoded message that should be sent to the RDP server .
pub fn update_clipboard(&mut self, data: Vec<u8>) -> RdpResult<Vec<u8>> {
        self.clipboard
            .insert(ClipboardFormat::CF_OEMTEXT as u32, data);
        encode_message(
            ClipboardPDUType::CB_FORMAT_LIST,
            FormatListPDU {
                format_names: vec![LongFormatName::id(ClipboardFormat::CF_OEMTEXT as u32)],
            }
            .encode()?,
        )
    }
pub fn update_clipboard ( & mut self , data : Vec < u8 > ) -> RdpResult < Vec < u8 > > { self . clipboard . insert ( ClipboardFormat :: CF_OEMTEXT as u32 , data ) ; encode_message ( ClipboardPDUType :: CB_FORMAT_LIST , FormatListPDU { format_names : vec ! [ LongFormatName id ( ClipboardFormat CF_OEMTEXT as u32 ) ] , } . encode ( ) ? , ) }
update_clipboard is invoked from Go.
update_clipboard is invoked from Go .
&mut self
data
Vec<u8>
&mut self
data
Vec<u8>