pub enum Refusal {
Error {
class: ErrorClass,
code: ErrorCode,
},
Reject(RejectReason),
Abort(AbortReason),
}Expand description
How a device turned down a confirmed request.
Variants§
Error
An Error PDU.
Reject(RejectReason)
A Reject PDU, with its reason.
Abort(AbortReason)
An Abort PDU, with its reason.
Trait Implementations§
impl Copy for Refusal
impl Eq for Refusal
Source§impl From<Refusal> for Error
The error a client’s WriteProperty answered this way reports:
Error::Protocol, Error::Reject or Error::Abort. A Refusal
keeps only an Error’s class and code, so it never becomes
Error::Structured, which a client reports for the services whose
Error carries more.
impl From<Refusal> for Error
The error a client’s WriteProperty answered this way reports:
Error::Protocol, Error::Reject or Error::Abort. A Refusal
keeps only an Error’s class and code, so it never becomes
Error::Structured, which a client reports for the services whose
Error carries more.
impl StructuralPartialEq for Refusal
Auto Trait Implementations§
impl Freeze for Refusal
impl RefUnwindSafe for Refusal
impl Send for Refusal
impl Sync for Refusal
impl Unpin for Refusal
impl UnsafeUnpin for Refusal
impl UnwindSafe for Refusal
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