hara_native/lang/protocol/istreamwrite.rs
1use hara_protocol_macros::hara_protocol;
2
3#[hara_protocol(
4 namespace = "std.protocol.istreamwrite",
5 name = "IStreamWrite",
6 availability = "capability-gated",
7 capability = "native-runtime-protocols"
8)]
9pub trait IStreamWrite {
10 type Value;
11 type Output;
12
13 #[hara_method(value = "write", arity = 2)]
14 fn write(&mut self, value: Self::Value) -> Self::Output;
15}