pub struct UnbindResponse {
pub sequence_number: u32,
pub command_status: u32,
pub status_description: String,
}Expand description
Represents an Unbind Response PDU.
Sent by the SMSC in response to an Unbind Request.
Fields§
§sequence_number: u32Sequence number of the PDU
command_status: u32Command Status (0 = OK, others = Error)
status_description: StringHuman-readable description of status
Implementations§
Source§impl UnbindResponse
impl UnbindResponse
Sourcepub fn new(sequence_number: u32, status_name: &str) -> Self
pub fn new(sequence_number: u32, status_name: &str) -> Self
Create a new Unbind Response.
§Examples
use smpp_codec::pdus::UnbindResponse;
let sequence_number: u32 = 1;
let unbind_resp = UnbindResponse::new(sequence_number, "ESME_ROK");Trait Implementations§
Source§impl Clone for UnbindResponse
impl Clone for UnbindResponse
Source§fn clone(&self) -> UnbindResponse
fn clone(&self) -> UnbindResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 UnbindResponse
impl Debug for UnbindResponse
Source§impl PartialEq for UnbindResponse
impl PartialEq for UnbindResponse
impl StructuralPartialEq for UnbindResponse
Auto Trait Implementations§
impl Freeze for UnbindResponse
impl RefUnwindSafe for UnbindResponse
impl Send for UnbindResponse
impl Sync for UnbindResponse
impl Unpin for UnbindResponse
impl UnwindSafe for UnbindResponse
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