Expand description
Helper utilities for the DFIR syntax.
Modules§
- clear
- Module for the
Cleartrait. - demux_
enum dfir_macro - Trait for the
demux_enumderive and operator. - deploy
deploy_integration - Hydro Deploy integration for DFIR.
- multiset
- A multiset backed by a HashMap
- priority_
stack - A priority queue in which elements of the same priority are popped in a LIFO order.
- simulation
- Hydro/DFIR Deterministic Simulation Testing Framework
- slot_
vec - A Vec-based SlotMap-esque datastructure and corresponding Key type.
- sparse_
vec - A vector that supports efficient deletion without reordering all subsequent items.
- unsync
- Unsync (i.e. single-threaded) synchronization primitives.
Structs§
- Monotonic
Fn - A wrapper christening a closure as a monotonic function
- Morphism
- A wrapper christening a closure as a lattice morphism
Enums§
- Persistence
- Persit or delete tuples
- Persistence
Keyed - Persit or delete key-value pairs
Functions§
- bind_
tcp Non-WebAssembly - Create a listening tcp socket, and then as new connections come in, receive their data and forward it to a queue.
- bind_
tcp_ bytes Non-WebAssembly - Returns a newline-delimited bytes
Sender,Receiver, andSocketAddrbound to the given address. - bind_
tcp_ lines Non-WebAssembly - This is the same thing as
bind_tcp_bytesexcept instead of using a length-delimited encoding scheme it uses new lines to separate frames. - bind_
udp_ bytes Non-WebAssembly - Returns a length-delimited bytes
Sink,Stream, andSocketAddrbound to the given address. The inputaddrmay have a port of0, the returnedSocketAddrwill have the chosen port. - bind_
udp_ lines Non-WebAssembly - Returns a newline-delimited bytes
Sink,Stream, andSocketAddrbound to the given address. The inputaddrmay have a port of0, the returnedSocketAddrwill have the chosen port. - collect_
ready - Collects the immediately available items from the
Streaminto aFromIteratorcollection. - collect_
ready_ async - Collects the immediately available items from the
Streaminto a collection (Default+Extend). - connect_
tcp Non-WebAssembly - The inverse of
bind_tcp. - connect_
tcp_ bytes Non-WebAssembly - The inverse of
bind_tcp_bytes. - connect_
tcp_ lines Non-WebAssembly - This is the same thing as
connect_tcp_bytesexcept instead of using a length-delimited encoding scheme it uses new lines to separate frames. - deserialize_
from_ bytes - Serialize a message from bytes using bincode.
- ipv4_
resolve - Resolve the
ipv4SocketAddrfrom an IP or hostname string. - iter_
batches_ stream - Converts an iterator into a stream that emits
nitems at a time, yielding between each batch. - ready_
iter - Returns an
Iteratorof any immediately available items from the [Stream]. - serialize_
to_ bytes - Serialize a message to bytes using bincode.
- sort_
unstable_ by_ key_ hrtb - Sort a slice using a key fn which returns references.
- tcp_
bytes Non-WebAssembly - Helper creates a TCP
StreamandSinkforBytesstrings where each string is length-delimited. - tcp_
bytestream Non-WebAssembly - Helper creates a TCP
StreamandSinkfor undelimited streams ofBytes. - tcp_
framed Non-WebAssembly - Helper creates a TCP
StreamandSinkfrom the given socket, using the givenCodecto handle delineation between inputs/outputs. - tcp_
lines Non-WebAssembly - Helper creates a TCP
StreamandSinkforstrings delimited by newlines. - udp_
bytes Non-WebAssembly - Helper creates a UDP
StreamandSinkforBytesstrings where each string is length-delimited. - udp_
bytestream Non-WebAssembly - Helper creates a UDP
StreamandSinkfor undelimited streams ofBytes. - udp_
framed Non-WebAssembly - Returns a UDP
Stream,Sink, and address for the given socket, using the givenCodecto handle delineation between inputs/outputs. - udp_
lines Non-WebAssembly - Helper creates a UDP
StreamandSinkforStrings delimited by newlines. - unbounded_
channel - Returns a channel as a (1) unbounded sender and (2) unbounded receiver
Streamfor use in DFIR. - unix_
bytes Unix - Helper creates a Unix
StreamandSinkforBytesstrings where each string is length-delimited. - unix_
bytestream Unix - Helper creates a Unix
StreamandSinkfor undelimited streams ofBytes. - unix_
framed Unix - Helper creates a Unix
StreamandSinkfrom the given socket, using the givenCodecto handle delineation between inputs/outputs. - unix_
lines Unix - Helper creates a Unix
StreamandSinkforstrings delimited by newlines. - unsync_
channel - Returns an unsync channel as a (1) sender and (2) receiver
Streamfor use in DFIR.
Type Aliases§
- TcpFramed
Sink Non-WebAssembly - A framed TCP
Sink(sending). - TcpFramed
Stream Non-WebAssembly - A framed TCP
Stream(receiving). - UdpBytes
Sink Non-WebAssembly - A UDP undelimited bytes
Sink(sending). - UdpBytes
Stream Non-WebAssembly - A UDP undelimited bytes
Stream(receiving). - UdpFramed
Sink Non-WebAssembly - A framed UDP
Sink(sending). - UdpFramed
Stream Non-WebAssembly - A framed UDP
Stream(receiving). - UdpLines
Sink Non-WebAssembly - A UDP newline-delimited
StringSink(sending). - UdpLines
Stream Non-WebAssembly - A UDP newline-delimited
StringStream(receivng). - UdpSink
Non-WebAssembly - A UDP length-delimited frame
Sink(sending). - UdpStream
Non-WebAssembly - A UDP length-delimited frame
Stream(receiving).