Trait RecordReads
pub trait RecordReads: Send + Sync {
// Required method
fn read(
&self,
caller: &Caller,
address: &RecordAddress,
) -> Result<RecordCopy, ActionHostError>;
}Expand description
A host’s door for reading records outside their app.
Required Methods§
fn read(
&self,
caller: &Caller,
address: &RecordAddress,
) -> Result<RecordCopy, ActionHostError>
fn read( &self, caller: &Caller, address: &RecordAddress, ) -> Result<RecordCopy, ActionHostError>
The record address of caller’s workspace, as caller may read it now.
§Errors
ActionHostError::NotPermitted for a caller that is not an agent task acting for its
person, ActionHostError::Refused for a record the caller may not read,
ActionHostError::Unavailable when the workspace’s records cannot be read now (still
arriving, or held nowhere on this device).