pub enum TransportKind {
Https,
Didcomm,
Tsp,
}Expand description
Which wire a TrqlTransport speaks.
Kept as an explicit tag (never inferred from endpoint shape — a TSP VID is a DID too) so callers and logs can always name the protocol in use.
Variants§
Https
POST /trust-tasks per the trust-tasks-https binding.
Didcomm
The trust-tasks-didcomm envelope over an ATM mediator.
Tsp
The trust-tasks-tsp envelope in a TSP Direct message.
Implementations§
Source§impl TransportKind
impl TransportKind
Sourcepub fn service_type(self) -> &'static str
pub fn service_type(self) -> &'static str
The DID-document service type that advertises this transport.
Sourcepub fn is_compiled(self) -> bool
pub fn is_compiled(self) -> bool
Whether this build can actually construct this transport.
Sourcepub fn compiled() -> Vec<TransportKind>
pub fn compiled() -> Vec<TransportKind>
The transports compiled into this build, in preference order.
Selecting against this rather than a hard-coded list means a binary
built without --features tsp will not choose TSP and then fail to
construct the transport.
Trait Implementations§
Source§impl Clone for TransportKind
impl Clone for TransportKind
Source§fn clone(&self) -> TransportKind
fn clone(&self) -> TransportKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransportKind
Source§impl Debug for TransportKind
impl Debug for TransportKind
Source§impl Display for TransportKind
impl Display for TransportKind
impl Eq for TransportKind
Source§impl Hash for TransportKind
impl Hash for TransportKind
Source§impl PartialEq for TransportKind
impl PartialEq for TransportKind
impl StructuralPartialEq for TransportKind
Auto Trait Implementations§
impl Freeze for TransportKind
impl RefUnwindSafe for TransportKind
impl Send for TransportKind
impl Sync for TransportKind
impl Unpin for TransportKind
impl UnsafeUnpin for TransportKind
impl UnwindSafe for TransportKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.