libutils_console/
continuations.rs1use alloc::{
7 string::String,
8 vec::Vec
9};
10
11use libutils_issue::Issue;
13
14
15#[must_use]
21pub trait Synchronization {
22 fn sync(self) -> ();
23 fn ignore(self) -> ();
24}
25
26#[must_use]
28pub trait Descriptor {
29 fn read(&mut self) -> Result<String, Issue>;
30 fn read_bytes(&mut self) -> Result<Vec<u8>, Issue>;
31 fn close(self) -> ();
32 fn write(&mut self, content: &str) -> Result<(), Issue>;
33 fn write_bytes(&mut self, content: &[u8]) -> Result<(), Issue>;
34}