Struct keri_controller::communication::Communication
source · pub struct Communication {
pub events: Arc<KnownEvents>,
pub transport: Box<dyn Transport + Send + Sync>,
pub tel_transport: Box<dyn GeneralTelTransport + Send + Sync>,
}Fields§
§events: Arc<KnownEvents>§transport: Box<dyn Transport + Send + Sync>§tel_transport: Box<dyn GeneralTelTransport + Send + Sync>Implementations§
source§impl Communication
impl Communication
pub fn new( known_events: Arc<KnownEvents>, transport: Box<dyn Transport<ActorError> + Send + Sync>, tel_transport: Box<dyn GeneralTelTransport + Send + Sync> ) -> Self
sourcepub async fn resolve_loc_schema(
&self,
lc: &LocationScheme
) -> Result<(), ControllerError>
pub async fn resolve_loc_schema( &self, lc: &LocationScheme ) -> Result<(), ControllerError>
Make http request to get identifier’s endpoints information.
sourcepub async fn resolve_end_role(
&self,
er: &EndRole
) -> Result<(), ControllerError>
pub async fn resolve_end_role( &self, er: &EndRole ) -> Result<(), ControllerError>
Make http request to get identifier’s endpoints information.
sourcepub async fn resolve_oobi(&self, oobi: &Oobi) -> Result<(), ControllerError>
pub async fn resolve_oobi(&self, oobi: &Oobi) -> Result<(), ControllerError>
Make http request to get identifier’s endpoints information.
pub async fn send_message_to( &self, id: &IdentifierPrefix, scheme: Scheme, msg: Message ) -> Result<(), ControllerError>
pub async fn send_query_to( &self, id: &IdentifierPrefix, scheme: Scheme, query: SignedKelQuery ) -> Result<PossibleResponse, ControllerError>
sourcepub async fn publish(
&self,
witness_prefixes: &[BasicPrefix],
message: &SignedEventMessage
) -> Result<(), ControllerError>
pub async fn publish( &self, witness_prefixes: &[BasicPrefix], message: &SignedEventMessage ) -> Result<(), ControllerError>
Publish key event to witnesses
- send it to all witnesses
- collect witness receipts and process them
- get processed receipts from db and send it to all witnesses
sourcepub async fn send_oobi_to_watcher(
&self,
id: &IdentifierPrefix,
oobi: &Oobi
) -> Result<(), ControllerError>
pub async fn send_oobi_to_watcher( &self, id: &IdentifierPrefix, oobi: &Oobi ) -> Result<(), ControllerError>
Sends identifier’s endpoint information to identifiers’s watchers.
Auto Trait Implementations§
impl Freeze for Communication
impl !RefUnwindSafe for Communication
impl Send for Communication
impl Sync for Communication
impl Unpin for Communication
impl !UnwindSafe for Communication
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more