INNER CODE UNIT · Rust

new

pythops/bluetui · src/agent.rs:34

    pub fn new(sender: UnboundedSender<Event>) -> Self {
        let (tx_passkey, rx_passkey) = async_channel::unbounded();
        let (tx_display_passkey, rx_display_passkey) = async_channel::unbounded();

        let (tx_pin_code, rx_pin_code) = async_channel::unbounded();
        let (tx_display_pin_code, rx_display_pin_code) = async_channel::unbounded();

        let (tx_request_confirmation, rx_request_confirmation) = async_channel::unbounded();
        let (tx_cancel, rx_cancel) = async_channel::unbounded();

        Self {
            event_sender: sender,
            tx_cancel,
            rx_cancel,
            tx_pin_code,
            rx_pin_code,
            tx_display_pin_code,
            rx_display_pin_code,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…