pub struct ReleaseRequest {
pub reason: Option<u8>,
pub user_information: Option<Vec<u8>>,
}Expand description
An RLRQ (association release request) or RLRE (release response) APDU. Both share the same shape: an optional reason and optional user-information (which carries a ciphered InitiateRequest/Response when the AA used ciphering).
Fields§
§reason: Option<u8>Release reason (see release_reason).
user_information: Option<Vec<u8>>User-information: the xDLMS InitiateRequest APDU (opaque), if any.
Implementations§
Source§impl ReleaseRequest
impl ReleaseRequest
fn encode(&self, apdu_tag: u8) -> Vec<u8> ⓘ
Sourcepub fn decode_rlrq(bytes: &[u8]) -> Result<ReleaseRequest, ServiceError>
pub fn decode_rlrq(bytes: &[u8]) -> Result<ReleaseRequest, ServiceError>
Decodes an RLRQ APDU.
Sourcepub fn decode_rlre(bytes: &[u8]) -> Result<ReleaseResponse, ServiceError>
pub fn decode_rlre(bytes: &[u8]) -> Result<ReleaseResponse, ServiceError>
Decodes an RLRE APDU.
fn decode(bytes: &[u8], apdu_tag: u8) -> Result<ReleaseRequest, ServiceError>
Trait Implementations§
Source§impl Clone for ReleaseRequest
impl Clone for ReleaseRequest
Source§fn clone(&self) -> ReleaseRequest
fn clone(&self) -> ReleaseRequest
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 ReleaseRequest
impl Debug for ReleaseRequest
Source§impl PartialEq for ReleaseRequest
impl PartialEq for ReleaseRequest
impl StructuralPartialEq for ReleaseRequest
Auto Trait Implementations§
impl Freeze for ReleaseRequest
impl RefUnwindSafe for ReleaseRequest
impl Send for ReleaseRequest
impl Sync for ReleaseRequest
impl Unpin for ReleaseRequest
impl UnsafeUnpin for ReleaseRequest
impl UnwindSafe for ReleaseRequest
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