INNER CODE UNIT · Rust

from

qaul/qaul.net · rust/libp2p_modules/qaul_messaging/src/lib.rs:154

    fn from(_: ()) -> InnerMessage {
        InnerMessage::Sent
    }
}

/// Event that can happen on the qaul_messaging behaviour.
#[derive(Debug)]
pub enum QaulMessagingEvent {
    /// A message has been received.
    Message(QaulMessagingReceived),
}

/// Configuration options for the qaul messaging behaviour
#[derive(Debug, Clone)]
pub struct QaulMessagingConfig {
    /// Peer id of the local node. Used for the source of the messages that we publish.
    pub local_peer_id: PeerId,
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…