libp2p/stream/chronosstream

    Dark Mode
Search:
Group by:
  Source   Edit

Types

ChronosStream = ref object of Connection
  client: StreamTransport
  when defined(libp2p_agents_metrics):
      tracked: bool

  
  Source   Edit

Consts

ChronosStreamTrackerName = "ChronosStream"
  Source   Edit

Procs

proc init(C: type ChronosStream; client: StreamTransport; dir: Direction;
          timeout = DefaultChronosStreamTimeout; observedAddr: Opt[MultiAddress]): ChronosStream {.
    ...raises: [].}
  Source   Edit
func shortLog(conn: ChronosStream): auto {....raises: [], tags: [].}
  Source   Edit

Methods

method atEof(s: ChronosStream): bool {....raises: [], tags: [].}
  Source   Edit
method closed(s: ChronosStream): bool {....raises: [], tags: [].}
  Source   Edit
method closeImpl(s: ChronosStream): InternalRaisesFuture[void, void] {.
    stackTrace: false, ...raises: [], gcsafe, raises: [], raises: [],
    tags: [RootEffect].}
  Source   Edit
method getWrapped(s: ChronosStream): Connection {....raises: [], tags: [].}
  Source   Edit
method initStream(s: ChronosStream) {....raises: [], tags: [TimeEffect, RootEffect].}
  Source   Edit
method readOnce(s: ChronosStream; pbytes: pointer; nbytes: int): InternalRaisesFuture[
    int, (CancelledError, LPStreamError)] {.stackTrace: false, ...raises: [],
    gcsafe, raises: [], raises: [], tags: [RootEffect].}
  Source   Edit
method write(s: ChronosStream; msg: seq[byte]): InternalRaisesFuture[void,
    (CancelledError, LPStreamError)] {.stackTrace: false, ...raises: [], gcsafe,
                                       raises: [], raises: [],
                                       tags: [RootEffect].}
  Source   Edit

Templates

template formatItIMPL(it: ChronosStream): auto
  Source   Edit