pub struct Address(/* private fields */);Expand description
An actor address: an absolute IRI.
Implementations§
Source§impl Address
impl Address
Sourcepub fn parse(text: &str) -> Result<Self, AddressError>
pub fn parse(text: &str) -> Result<Self, AddressError>
Parses an address. Relative references and strings that are not IRIs are rejected.
§Errors
AddressError for anything but an absolute IRI.
Sourcepub fn virtual_actor(chart_type: &str, key: &str) -> Result<Self, AddressError>
pub fn virtual_actor(chart_type: &str, key: &str) -> Result<Self, AddressError>
The address of the virtual actor of chart type chart_type with key key:
<chart_type>/<percent-encoded key>. The same pair always gives the same address.
§Errors
AddressError when chart_type is not an absolute IRI.
Sourcepub fn invoked(parent: &Address, invokeid: &str) -> Address
pub fn invoked(parent: &Address, invokeid: &str) -> Address
The address of the child invoked by parent with invoke id invokeid:
<parent>/invoke/<percent-encoded id>.
Sourcepub fn entry_iri(&self, position: u64) -> NamedNode
pub fn entry_iri(&self, position: u64) -> NamedNode
The IRI of the journal entry at position, also the name of its graph.
Sourcepub fn snapshot_iri(&self, position: u64) -> NamedNode
pub fn snapshot_iri(&self, position: u64) -> NamedNode
The IRI of the snapshot at position, also the name of its graph.
Sourcepub fn dead_letter_iri(&self, message_id: &str) -> NamedNode
pub fn dead_letter_iri(&self, message_id: &str) -> NamedNode
The IRI of the dead letter for message message_id.
Sourcepub fn dead_letter_graph(&self) -> NamedNode
pub fn dead_letter_graph(&self) -> NamedNode
The graph holding this actor’s dead letters.
Sourcepub fn mailbox_graph(&self) -> NamedNode
pub fn mailbox_graph(&self) -> NamedNode
The graph holding this actor’s store-backed mailbox.
Sourcepub fn mailbox_row_iri(&self, seq: u64, envelope: &str) -> NamedNode
pub fn mailbox_row_iri(&self, seq: u64, envelope: &str) -> NamedNode
The IRI of the mailbox row with sequence number seq holding the serialized envelope
envelope: <self>/mailbox/<seq>-<digest>. Mailboxes on different nodes sharing one
store number their rows independently, so the sequence number alone collides; with the
envelope’s digest two rows share an IRI only when they hold the same message at the same
sequence number, and then they are the same triples.
Sourcepub fn outbox_graph(&self) -> NamedNode
pub fn outbox_graph(&self) -> NamedNode
The graph holding this actor’s outbox marks.
Sourcepub fn correlation_id(&self, position: u64, k: usize) -> String
pub fn correlation_id(&self, position: u64, k: usize) -> String
The correlation id of the k-th request issued by the macrostep journaled at
position: <self>/request/<position>.<k>.