pub struct Message { /* private fields */ }Implementations§
Source§impl Message
impl Message
pub fn new_request(netfn: NetFn, cmd: u8, data: Vec<u8>) -> Self
pub fn new_response(netfn: NetFn, cmd: u8, data: Vec<u8>) -> Self
pub fn new_raw(netfn: u8, cmd: u8, data: Vec<u8>) -> Self
pub fn netfn(&self) -> NetFn
pub fn netfn_raw(&self) -> u8
pub fn cmd(&self) -> u8
pub fn data(&self) -> &[u8] ⓘ
pub fn data_mut(&mut self) -> &mut [u8] ⓘ
Trait Implementations§
Source§impl From<ActivateSession> for Message
impl From<ActivateSession> for Message
Source§fn from(value: ActivateSession) -> Self
fn from(value: ActivateSession) -> Self
Converts to this type from the input type.
Source§impl From<GetAllocInfo> for Message
impl From<GetAllocInfo> for Message
Source§fn from(_: GetAllocInfo) -> Self
fn from(_: GetAllocInfo) -> Self
Converts to this type from the input type.
Source§impl From<GetAllocInfo> for Message
impl From<GetAllocInfo> for Message
Source§fn from(_: GetAllocInfo) -> Self
fn from(_: GetAllocInfo) -> Self
Converts to this type from the input type.
Source§impl From<GetChannelAuthenticationCapabilities> for Message
impl From<GetChannelAuthenticationCapabilities> for Message
Source§fn from(value: GetChannelAuthenticationCapabilities) -> Message
fn from(value: GetChannelAuthenticationCapabilities) -> Message
Converts to this type from the input type.
Source§impl From<GetChannelCipherSuites> for Message
impl From<GetChannelCipherSuites> for Message
Source§fn from(value: GetChannelCipherSuites) -> Self
fn from(value: GetChannelCipherSuites) -> Self
Converts to this type from the input type.
Source§impl From<GetDeviceId> for Message
impl From<GetDeviceId> for Message
Source§fn from(_: GetDeviceId) -> Self
fn from(_: GetDeviceId) -> Self
Converts to this type from the input type.
Source§impl From<GetDeviceSdr> for Message
impl From<GetDeviceSdr> for Message
Source§fn from(value: GetDeviceSdr) -> Self
fn from(value: GetDeviceSdr) -> Self
Converts to this type from the input type.
Source§impl From<GetDeviceSdrInfo<SdrCount>> for Message
impl From<GetDeviceSdrInfo<SdrCount>> for Message
Source§fn from(_: GetDeviceSdrInfo<SdrCount>) -> Self
fn from(_: GetDeviceSdrInfo<SdrCount>) -> Self
Converts to this type from the input type.
Source§impl From<GetDeviceSdrInfo<SensorCount>> for Message
impl From<GetDeviceSdrInfo<SensorCount>> for Message
Source§fn from(_: GetDeviceSdrInfo<SensorCount>) -> Self
fn from(_: GetDeviceSdrInfo<SensorCount>) -> Self
Converts to this type from the input type.
Source§impl From<GetRepositoryInfo> for Message
impl From<GetRepositoryInfo> for Message
Source§fn from(_: GetRepositoryInfo) -> Self
fn from(_: GetRepositoryInfo) -> Self
Converts to this type from the input type.
Source§impl From<GetSensorReading> for Message
impl From<GetSensorReading> for Message
Source§fn from(value: GetSensorReading) -> Self
fn from(value: GetSensorReading) -> Self
Converts to this type from the input type.
Source§impl From<GetSessionChallenge> for Message
impl From<GetSessionChallenge> for Message
Source§fn from(value: GetSessionChallenge) -> Message
fn from(value: GetSessionChallenge) -> Message
Converts to this type from the input type.
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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