Skip to main content

hara_native/lang/protocol/
iworkref.rs

1use hara_protocol_macros::hara_protocol;
2
3#[hara_protocol(
4    namespace = "std.protocol.iworkref",
5    name = "IWorkRef",
6    availability = "capability-gated",
7    capability = "native-runtime-protocols"
8)]
9pub trait IWorkRef {
10    type Id;
11
12    #[hara_method(value = "work-id", arity = 1)]
13    fn work_id(&self) -> Self::Id;
14}