Module dfir_rs::util

source ·
Expand description

Helper utilities for the Hydroflow surface syntax.

Modules§

Structs§

Enums§

Functions§

  • Create a listening tcp socket, and then as new connections come in, receive their data and forward it to a queue.
  • Returns a newline-delimited bytes Sender, Receiver, and SocketAddr bound to the given address.
  • This is the same thing as bind_tcp_bytes except instead of using a length-delimited encoding scheme it uses new lines to separate frames.
  • Returns a length-delimited bytes Sink, Stream, and SocketAddr bound to the given address. The input addr may have a port of 0, the returned SocketAddr will have the chosen port.
  • Returns a newline-delimited bytes Sink, Stream, and SocketAddr bound to the given address. The input addr may have a port of 0, the returned SocketAddr will have the chosen port.
  • Collects the immediately available items from the Stream into a FromIterator collection.
  • Collects the immediately available items from the Stream into a collection (Default + Extend).
  • The inverse of bind_tcp.
  • The inverse of bind_tcp_bytes.
  • This is the same thing as connect_tcp_bytes except instead of using a length-delimited encoding scheme it uses new lines to separate frames.
  • Serialize a message from bytes using bincode.
  • Resolve the ipv4 SocketAddr from an IP or hostname string.
  • Converts an iterator into a stream that emits n items at a time, yielding between each batch.
  • Returns an Iterator of any immediately available items from the [Stream].
  • Run a rust example as a test.
  • Serialize a message to bytes using bincode.
  • Sort a slice using a key fn which returns references.
  • Helper creates a TCP Stream and Sink for Bytes strings where each string is length-delimited.
  • Helper creates a TCP Stream and Sink for undelimited streams of Bytes.
  • Helper creates a TCP Stream and Sink from the given socket, using the given Codec to handle delineation between inputs/outputs.
  • Helper creates a TCP Stream and Sink for strings delimited by newlines.
  • Helper creates a UDP Stream and Sink for Bytes strings where each string is length-delimited.
  • Helper creates a UDP Stream and Sink for undelimited streams of Bytes.
  • Returns a UDP Stream, Sink, and address for the given socket, using the given Codec to handle delineation between inputs/outputs.
  • Helper creates a UDP Stream and Sink for Strings delimited by newlines.
  • Returns a channel as a (1) unbounded sender and (2) unbounded receiver Stream for use in Hydroflow.
  • Helper creates a Unix Stream and Sink for Bytes strings where each string is length-delimited.
  • Helper creates a Unix Stream and Sink for undelimited streams of Bytes.
  • Helper creates a Unix Stream and Sink from the given socket, using the given Codec to handle delineation between inputs/outputs.
  • Helper creates a Unix Stream and Sink for strings delimited by newlines.
  • Returns an unsync channel as a (1) sender and (2) receiver Stream for use in Hydroflow.
  • Waits for a specific process output before returning.

Type Aliases§