pub struct TransportContext {
pub issuer: Option<String>,
pub recipient: Option<String>,
}Expand description
What the transport handler observed about an inbound message’s parties.
Returned by TransportHandler::derive_parties. A field is None when
the transport does not authenticate that party — for example, a plain
HTTPS handler with no client certificate sets issuer = None.
Fields§
§issuer: Option<String>Transport-authenticated sender identity, if any.
recipient: Option<String>Transport-authenticated recipient identity, if any.
Trait Implementations§
Source§impl Clone for TransportContext
impl Clone for TransportContext
Source§fn clone(&self) -> TransportContext
fn clone(&self) -> TransportContext
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 moreSource§impl Debug for TransportContext
impl Debug for TransportContext
Source§impl Default for TransportContext
impl Default for TransportContext
Source§fn default() -> TransportContext
fn default() -> TransportContext
Returns the “default value” for a type. Read more
impl Eq for TransportContext
Source§impl PartialEq for TransportContext
impl PartialEq for TransportContext
impl StructuralPartialEq for TransportContext
Auto Trait Implementations§
impl Freeze for TransportContext
impl RefUnwindSafe for TransportContext
impl Send for TransportContext
impl Sync for TransportContext
impl Unpin for TransportContext
impl UnsafeUnpin for TransportContext
impl UnwindSafe for TransportContext
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
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,
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.