update to servicepoint v0.15.0

This commit is contained in:
Vinzenz Schroeter 2025-05-24 13:50:21 +02:00
parent 01b3169020
commit e5825819e6
3 changed files with 13 additions and 4 deletions

View file

@ -159,23 +159,28 @@ typedef uint8_t CommandTag;
*
* # Examples
*
* create command without payload compression
* ```rust
* # use servicepoint::*;
* // create command without payload compression
* # let pixels = Bitmap::max_sized();
* _ = BitmapCommand {
* origin: Origin::ZERO,
* bitmap: pixels,
* compression: CompressionCode::Uncompressed
* };
* ```
*
* // create command with payload compressed with lzma and appropriate header flags
* create command with payload compressed with lzma and appropriate header flags
* ```rust
* # use servicepoint::*;
* # let pixels = Bitmap::max_sized();
* # #[cfg(feature = "compression_lzma")] {
* _ = BitmapCommand {
* origin: Origin::ZERO,
* bitmap: pixels,
* compression: CompressionCode::Lzma
* };
* # }
* ```
*/
enum CompressionCode
@ -331,8 +336,10 @@ typedef struct ClearCommand ClearCommand;
* # use servicepoint::*;
* # let connection = FakeConnection;
* let grid = CharGrid::from("Hello,\nWorld!");
* # #[cfg(feature = "cp437")] {
* let grid = Cp437Grid::from(&grid);
* connection.send_command(Cp437GridCommand{ origin: Origin::ZERO, grid }).expect("send failed");
* # }
* ```
*
* ```rust