Module io/writer
io/writer
Writer trait for byte-level output.
Traits / Modules
Writer
trait
Writer
Common interface for writing bytes to a destination.
Methods
write : fn(self : Self, buf : *(u8), size : usize, exn : Exception) -> usizeWrite bytes from buffer. Returns number of bytes written.
Parameters
| Name | Type | Notes |
|---|---|---|
self | Self | |
buf | *(u8) | |
size | usize | |
exn | Exception |
Returns: usize
flush : fn(self : Self, exn : Exception) -> unitFlush any buffered data to the underlying destination.
Parameters
| Name | Type | Notes |
|---|---|---|
self | Self | |
exn | Exception |
Returns: unit