pub struct ConnectionDescriptor<'a> {
pub descriptor_type: ConnectionDescriptorType,
pub payload: &'a [u8],
}Expand description
connection_descriptor() object (Table 53): carries the connection info.
The body after the connection_descriptor_type byte is branch-dependent (an
SI telephone_descriptor() whose internal layout EN 50221 does not reproduce,
or a 1-byte channel_id); it is carried verbatim so it round-trips.
Fields§
§descriptor_type: ConnectionDescriptorTypeconnection_descriptor_type.
payload: &'a [u8]The branch-dependent payload (telephone_descriptor bytes, or the
channel_id byte), verbatim.
Trait Implementations§
Source§impl<'a> ApduDef<'a> for ConnectionDescriptor<'a>
impl<'a> ApduDef<'a> for ConnectionDescriptor<'a>
Source§impl<'a> Clone for ConnectionDescriptor<'a>
impl<'a> Clone for ConnectionDescriptor<'a>
Source§fn clone(&self) -> ConnectionDescriptor<'a>
fn clone(&self) -> ConnectionDescriptor<'a>
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<'a> Debug for ConnectionDescriptor<'a>
impl<'a> Debug for ConnectionDescriptor<'a>
impl<'a> Eq for ConnectionDescriptor<'a>
Source§impl<'a> From<ConnectionDescriptor<'a>> for AnyApdu<'a>
impl<'a> From<ConnectionDescriptor<'a>> for AnyApdu<'a>
Source§fn from(v: ConnectionDescriptor<'a>) -> Self
fn from(v: ConnectionDescriptor<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for ConnectionDescriptor<'a>
impl<'a> Parse<'a> for ConnectionDescriptor<'a>
Source§impl<'a> PartialEq for ConnectionDescriptor<'a>
impl<'a> PartialEq for ConnectionDescriptor<'a>
Source§impl<'a> Serialize for ConnectionDescriptor<'a>
Available on crate feature serde only.
impl<'a> Serialize for ConnectionDescriptor<'a>
Available on crate feature
serde only.Source§impl Serialize for ConnectionDescriptor<'_>
impl Serialize for ConnectionDescriptor<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for ConnectionDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for ConnectionDescriptor<'a>
impl<'a> RefUnwindSafe for ConnectionDescriptor<'a>
impl<'a> Send for ConnectionDescriptor<'a>
impl<'a> Sync for ConnectionDescriptor<'a>
impl<'a> Unpin for ConnectionDescriptor<'a>
impl<'a> UnsafeUnpin for ConnectionDescriptor<'a>
impl<'a> UnwindSafe for ConnectionDescriptor<'a>
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