pub struct TopicTracker {
pub node_id: NodeId,
/* private fields */
}Fields§
§node_id: NodeIdImplementations§
Source§impl TopicTracker
impl TopicTracker
pub const ALPN: &'static [u8] = b"iroh/topictracker/1"
pub const MAX_TOPIC_LIST_SIZE: usize = 10usize
pub const MAX_NODE_IDS_PER_TOPIC: usize = 100usize
pub const BOOTSTRAP_NODES: &str = "abcdef4df4d74587095d071406c2a8462bde5079cbbc0c50051b9b2e84d67691"
pub const MAX_MSG_SIZE_BYTES: u64 = 1_048_576u64
pub fn new(endpoint: &Endpoint) -> Self
pub async fn spawn_optional(self) -> Result<Self>
pub async fn get_topic_nodes(self, topic: &Topic) -> Result<Vec<NodeId>>
pub async fn memory_footprint(&self) -> usize
Trait Implementations§
Source§impl Clone for TopicTracker
impl Clone for TopicTracker
Source§fn clone(&self) -> TopicTracker
fn clone(&self) -> TopicTracker
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TopicTracker
impl Debug for TopicTracker
Source§impl ProtocolHandler for TopicTracker
impl ProtocolHandler for TopicTracker
Source§fn accept(
&self,
conn: Connection,
) -> impl Future<Output = Result<(), AcceptError>> + Send
fn accept( &self, conn: Connection, ) -> impl Future<Output = Result<(), AcceptError>> + Send
Handle an incoming connection. Read more
Source§fn on_connecting(
&self,
connecting: Connecting,
) -> impl Future<Output = Result<Connection, AcceptError>> + Send
fn on_connecting( &self, connecting: Connecting, ) -> impl Future<Output = Result<Connection, AcceptError>> + Send
Optional interception point to handle the
Connecting state. Read moreAuto Trait Implementations§
impl Freeze for TopicTracker
impl !RefUnwindSafe for TopicTracker
impl Send for TopicTracker
impl Sync for TopicTracker
impl Unpin for TopicTracker
impl !UnwindSafe for TopicTracker
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more