Struct jcm::UidRequest
source · #[repr(C)]pub struct UidRequest { /* private fields */ }Expand description
Represents a Status request message.
Implementations§
source§impl UidRequest
impl UidRequest
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new UidRequest.
sourcepub const fn new_get() -> Self
pub const fn new_get() -> Self
Creates a new UidRequest to get the UID.
sourcepub const fn new_set(uid: u8) -> Self
pub const fn new_set(uid: u8) -> Self
Creates a new UidRequest to set the UID.
sourcepub const fn uid(&self) -> u8
pub const fn uid(&self) -> u8
Gets the UID for the UidRequest.
sourcepub fn set_uid(&mut self, uid: u8)
pub fn set_uid(&mut self, uid: u8)
Sets the UID for the UidRequest.
sourcepub fn with_uid(self, uid: u8) -> Self
pub fn with_uid(self, uid: u8) -> Self
Builder function that sets the UID for the UidRequest.
sourcepub const fn request_mode(&self) -> RequestMode
pub const fn request_mode(&self) -> RequestMode
Gets the RequestMode for the UidRequest.
sourcepub fn set_request_mode(&mut self, mode: RequestMode)
pub fn set_request_mode(&mut self, mode: RequestMode)
Sets the RequestMode for the UidRequest.
sourcepub fn with_request_mode(self, mode: RequestMode) -> Self
pub fn with_request_mode(self, mode: RequestMode) -> Self
Builder function that sets the RequestMode for the UidRequest.
sourcepub const fn message_type(&self) -> MessageType
pub const fn message_type(&self) -> MessageType
Gets the MessageType for the UidRequest.
sourcepub const fn request_type(&self) -> RequestType
pub const fn request_type(&self) -> RequestType
Gets the RequestType for the UidRequest.
sourcepub const fn message_code(&self) -> MessageCode
pub const fn message_code(&self) -> MessageCode
Gets the MessageCode for the UidRequest.
sourcepub const fn request_code(&self) -> RequestCode
pub const fn request_code(&self) -> RequestCode
Gets the RequestCode for the UidRequest.
Trait Implementations§
source§impl Clone for UidRequest
impl Clone for UidRequest
source§fn clone(&self) -> UidRequest
fn clone(&self) -> UidRequest
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 UidRequest
impl Debug for UidRequest
source§impl Default for UidRequest
impl Default for UidRequest
source§impl From<&UidRequest> for Message
impl From<&UidRequest> for Message
source§fn from(val: &UidRequest) -> Self
fn from(val: &UidRequest) -> Self
Converts to this type from the input type.
source§impl From<&UidRequest> for MessageData
impl From<&UidRequest> for MessageData
source§fn from(val: &UidRequest) -> Self
fn from(val: &UidRequest) -> Self
Converts to this type from the input type.
source§impl From<UidRequest> for Message
impl From<UidRequest> for Message
source§fn from(val: UidRequest) -> Self
fn from(val: UidRequest) -> Self
Converts to this type from the input type.
source§impl From<UidRequest> for MessageData
impl From<UidRequest> for MessageData
source§fn from(val: UidRequest) -> Self
fn from(val: UidRequest) -> Self
Converts to this type from the input type.
source§impl PartialEq for UidRequest
impl PartialEq for UidRequest
source§fn eq(&self, other: &UidRequest) -> bool
fn eq(&self, other: &UidRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&Message> for UidRequest
impl TryFrom<&Message> for UidRequest
source§impl TryFrom<&MessageData> for UidRequest
impl TryFrom<&MessageData> for UidRequest
source§impl TryFrom<Message> for UidRequest
impl TryFrom<Message> for UidRequest
source§impl TryFrom<MessageData> for UidRequest
impl TryFrom<MessageData> for UidRequest
impl Copy for UidRequest
impl Eq for UidRequest
impl StructuralPartialEq for UidRequest
Auto Trait Implementations§
impl Freeze for UidRequest
impl RefUnwindSafe for UidRequest
impl Send for UidRequest
impl Sync for UidRequest
impl Unpin for UidRequest
impl UnwindSafe for UidRequest
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