Struct rusp::usp_record::DisconnectRecord
source · pub struct DisconnectRecord<'a> {
pub reason: Cow<'a, str>,
pub reason_code: u32,
}
Fields§
§reason: Cow<'a, str>
§reason_code: u32
Trait Implementations§
source§impl<'a> Clone for DisconnectRecord<'a>
impl<'a> Clone for DisconnectRecord<'a>
source§fn clone(&self) -> DisconnectRecord<'a>
fn clone(&self) -> DisconnectRecord<'a>
Returns a copy 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<'a> Debug for DisconnectRecord<'a>
impl<'a> Debug for DisconnectRecord<'a>
source§impl<'a> Default for DisconnectRecord<'a>
impl<'a> Default for DisconnectRecord<'a>
source§fn default() -> DisconnectRecord<'a>
fn default() -> DisconnectRecord<'a>
Returns the “default value” for a type. Read more
source§impl<'a> MessageRead<'a> for DisconnectRecord<'a>
impl<'a> MessageRead<'a> for DisconnectRecord<'a>
source§fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
fn from_reader(r: &mut BytesReader, bytes: &'a [u8]) -> Result<Self>
Constructs an instance of
Self
by reading from the given bytes
via the given reader. Read moresource§impl<'a> MessageWrite for DisconnectRecord<'a>
impl<'a> MessageWrite for DisconnectRecord<'a>
source§impl<'a> PartialEq for DisconnectRecord<'a>
impl<'a> PartialEq for DisconnectRecord<'a>
source§fn eq(&self, other: &DisconnectRecord<'a>) -> bool
fn eq(&self, other: &DisconnectRecord<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DisconnectRecord<'_>
impl Serialize for DisconnectRecord<'_>
impl<'a> StructuralPartialEq for DisconnectRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for DisconnectRecord<'a>
impl<'a> RefUnwindSafe for DisconnectRecord<'a>
impl<'a> Send for DisconnectRecord<'a>
impl<'a> Sync for DisconnectRecord<'a>
impl<'a> Unpin for DisconnectRecord<'a>
impl<'a> UnwindSafe for DisconnectRecord<'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