pub struct ReturnCode(/* private fields */);
Implementations§
Source§impl ReturnCode
impl ReturnCode
pub const SUCCESS_QOS_0: ReturnCode
pub const SUCCESS_QOS_1: ReturnCode
pub const SUCCESS_QOS_2: ReturnCode
pub const FAILURE: ReturnCode
pub fn failure(&self) -> bool
pub fn set_failure(&mut self, value: bool)
pub fn max_qos(&self) -> Result<QoS, Error>
pub fn set_max_qos(&mut self, qos: QoS)
Trait Implementations§
Source§impl<T> BitRange<T> for ReturnCode
impl<T> BitRange<T> for ReturnCode
Source§impl Clone for ReturnCode
impl Clone for ReturnCode
Source§fn clone(&self) -> ReturnCode
fn clone(&self) -> ReturnCode
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 Debug for ReturnCode
impl Debug for ReturnCode
Source§impl From<ReturnCode> for u8
impl From<ReturnCode> for u8
Source§fn from(val: ReturnCode) -> u8
fn from(val: ReturnCode) -> u8
Converts to this type from the input type.
Source§impl PartialEq for ReturnCode
impl PartialEq for ReturnCode
Source§impl TryFrom<u8> for ReturnCode
impl TryFrom<u8> for ReturnCode
impl Copy for ReturnCode
impl Eq for ReturnCode
impl StructuralPartialEq for ReturnCode
Auto Trait Implementations§
impl Freeze for ReturnCode
impl RefUnwindSafe for ReturnCode
impl Send for ReturnCode
impl Sync for ReturnCode
impl Unpin for ReturnCode
impl UnwindSafe for ReturnCode
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