#[repr(C)]pub struct Request { /* private fields */ }Expand description
Represents an event Message sent by the device.
Implementations§
source§impl Request
impl Request
sourcepub const fn message_type(&self) -> MessageType
pub const fn message_type(&self) -> MessageType
Gets the MessageType of the Request.
sourcepub const fn request_type(&self) -> RequestType
pub const fn request_type(&self) -> RequestType
Gets the RequestType of the Request.
sourcepub fn set_request_type(&mut self, val: RequestType)
pub fn set_request_type(&mut self, val: RequestType)
Sets the RequestType of the Request.
sourcepub fn with_request_type(self, val: RequestType) -> Self
pub fn with_request_type(self, val: RequestType) -> Self
Builder function that sets the RequestType of the Request.
sourcepub const fn message_code(&self) -> MessageCode
pub const fn message_code(&self) -> MessageCode
Gets the MessageCode of the Request.
sourcepub const fn request_code(&self) -> RequestCode
pub const fn request_code(&self) -> RequestCode
Gets the RequestCode of the Request.
sourcepub fn set_request_code(&mut self, code: RequestCode)
pub fn set_request_code(&mut self, code: RequestCode)
Sets the RequestCode of the Request.
sourcepub fn with_request_code(self, code: RequestCode) -> Self
pub fn with_request_code(self, code: RequestCode) -> Self
Builder function that sets the RequestCode of the Request.
sourcepub fn additional(&self) -> &[u8] ⓘ
pub fn additional(&self) -> &[u8] ⓘ
Gets a reference to the additional data of the Request.
sourcepub fn set_additional(&mut self, additional: &[u8])
pub fn set_additional(&mut self, additional: &[u8])
Sets the additional data of the Request.
sourcepub fn with_additional(self, additional: &[u8]) -> Self
pub fn with_additional(self, additional: &[u8]) -> Self
Builder function that sets the additional data of the Request.
Trait Implementations§
source§impl PartialEq for Request
impl PartialEq for Request
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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