pub struct SessionOut {
pub spdus: Vec<Vec<u8>>,
pub apdus: Vec<(u16, Vec<u8>)>,
pub opened: Vec<(u16, ResourceId)>,
pub closed: Vec<u16>,
}Expand description
What the session layer wants done after handling one SPDU.
Fields§
§spdus: Vec<Vec<u8>>SPDUs to hand down to the transport layer (each becomes a T_Data_Last).
apdus: Vec<(u16, Vec<u8>)>(session_nb, apdu_bytes) to pass up to the resource layer.
opened: Vec<(u16, ResourceId)>Sessions newly opened (session_nb, bound resource).
closed: Vec<u16>session_nbs that closed.
Trait Implementations§
Source§impl Clone for SessionOut
impl Clone for SessionOut
Source§fn clone(&self) -> SessionOut
fn clone(&self) -> SessionOut
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 SessionOut
impl Debug for SessionOut
Source§impl Default for SessionOut
impl Default for SessionOut
Source§fn default() -> SessionOut
fn default() -> SessionOut
Returns the “default value” for a type. Read more
impl Eq for SessionOut
Source§impl PartialEq for SessionOut
impl PartialEq for SessionOut
Source§fn eq(&self, other: &SessionOut) -> bool
fn eq(&self, other: &SessionOut) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionOut
Auto Trait Implementations§
impl Freeze for SessionOut
impl RefUnwindSafe for SessionOut
impl Send for SessionOut
impl Sync for SessionOut
impl Unpin for SessionOut
impl UnsafeUnpin for SessionOut
impl UnwindSafe for SessionOut
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