Expand description
This crate provides:
-
InputByteStream
,OutputByteStream
, andInteractiveByteStream
for working with byte streams, andInputTextStream
,OutputTextStream
, andInteractiveTextStream
for working with text streams. These implementRead
andWrite
in the usual way, so they interoperate with existing Rust code.You can use all these types in type-aware command-line parsing packages such as
nameless-clap_derive
or this library’s ownkommand
. (nameless-clap_derive
is a temporary fork ofclap_derive
; we are in the process of upstreaming our patches).
Structs§
- An input stream for binary input.
- In input stream for plain text input.
- An
InteractiveByteStream
implementsRead
andWrite
as is meant to be used with interactive streams. - An
InteractiveTextStream
implementsRead
andWrite
as is meant to be used with interactive streams. - A placeholder for an output stream which is created lazily. It is created when
materialize
is called. - The type of content in a stream. This can be either a Media Type (aka Mime Type) or a filename extension, both, or neither if nothing is known.
- A parsed mime or media type.
- An output stream for binary output.
- An output stream for plain text output.
- This struct encapsulates the name of an entity whose name is being hidden in the
nameless
API. It can be written to anOutputByteStream
but it’s otherwise entirely opaque.