pub struct MessagingConfig {
pub mediator_url: String,
pub mediator_did: String,
pub mediator_host: Option<String>,
pub setup_acl: bool,
pub drain_inbox_on_start: bool,
}Fields§
§mediator_url: StringMediator URL. Optional — the TDK resolves the endpoint from mediator_did. Kept for display/status purposes and backward compatibility.
mediator_did: String§mediator_host: Option<String>Real external hostname of the mediator (e.g., “mediator.example.com”). Used by the parent proxy to establish the TLS connection. Not used by the VTA itself (which connects via the local vsock proxy).
setup_acl: boolAutomatically provision a per-DID allow-all ACL on the mediator after
establishing the DIDComm connection. Required when the mediator uses
ExplicitAllow mode; harmless (and default-off) with ExplicitDeny.
Set setup_acl = true during setup to enable. Defaults to false.
drain_inbox_on_start: boolDrain this DID’s mediator inbox over REST at startup, before the live DIDComm/TSP listener enables live delivery.
Recovery lever for a wedged listener: the mediator enforces one live websocket stream per DID, and an undeliverable/poison message queued for this DID can stall the live-delivery handshake so the listener never comes up (taking DIDComm and TSP down, since they share the socket). Because REST auth + pickup work even when the websocket stalls, the VTA can fetch and clear its own queued messages first: each is best-effort processed, and anything that fails to unpack/handle is logged loudly and deleted so it can’t wedge startup again.
Default off — it deletes queued messages that can’t be handled, so it is opt-in. Turn it on when a mediator-side backlog is blocking boot.
Trait Implementations§
Source§impl Clone for MessagingConfig
impl Clone for MessagingConfig
Source§fn clone(&self) -> MessagingConfig
fn clone(&self) -> MessagingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessagingConfig
impl Debug for MessagingConfig
Source§impl<'de> Deserialize<'de> for MessagingConfig
impl<'de> Deserialize<'de> for MessagingConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessagingConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessagingConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for MessagingConfig
impl Serialize for MessagingConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for MessagingConfig
impl RefUnwindSafe for MessagingConfig
impl Send for MessagingConfig
impl Sync for MessagingConfig
impl Unpin for MessagingConfig
impl UnsafeUnpin for MessagingConfig
impl UnwindSafe for MessagingConfig
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
T.