#[repr(transparent)]pub struct MessageQueueInfo(pub otMessageQueueInfo);Expand description
This structure represents message queue info.
Functional equivalent of otsys::otMessageQueueInfo.
Tuple Fields§
§0: otMessageQueueInfoImplementations§
Source§impl MessageQueueInfo
impl MessageQueueInfo
Sourcepub fn num_messages(&self) -> u16
pub fn num_messages(&self) -> u16
Number of messages in the queue.
Sourcepub fn num_buffers(&self) -> u16
pub fn num_buffers(&self) -> u16
Number of buffers.
Sourcepub fn total_bytes(&self) -> u32
pub fn total_bytes(&self) -> u32
Total bytes.
Trait Implementations§
Source§impl Clone for MessageQueueInfo
impl Clone for MessageQueueInfo
Source§fn clone(&self) -> MessageQueueInfo
fn clone(&self) -> MessageQueueInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageQueueInfo
impl Debug for MessageQueueInfo
Source§impl Default for MessageQueueInfo
impl Default for MessageQueueInfo
Source§fn default() -> MessageQueueInfo
fn default() -> MessageQueueInfo
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a MessageQueueInfo> for &'a otMessageQueueInfo
impl<'a> From<&'a MessageQueueInfo> for &'a otMessageQueueInfo
Source§fn from(x: &'a MessageQueueInfo) -> Self
fn from(x: &'a MessageQueueInfo) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a otMessageQueueInfo> for &'a MessageQueueInfo
impl<'a> From<&'a otMessageQueueInfo> for &'a MessageQueueInfo
Source§fn from(x: &'a otMessageQueueInfo) -> Self
fn from(x: &'a otMessageQueueInfo) -> Self
Converts to this type from the input type.
Source§impl From<MessageQueueInfo> for otMessageQueueInfo
impl From<MessageQueueInfo> for otMessageQueueInfo
Source§fn from(x: MessageQueueInfo) -> Self
fn from(x: MessageQueueInfo) -> Self
Converts to this type from the input type.
Source§impl From<otMessageQueueInfo> for MessageQueueInfo
impl From<otMessageQueueInfo> for MessageQueueInfo
Source§fn from(x: otMessageQueueInfo) -> Self
fn from(x: otMessageQueueInfo) -> Self
Converts to this type from the input type.
Source§impl OtCastable for MessageQueueInfo
impl OtCastable for MessageQueueInfo
Source§type OtType = otMessageQueueInfo
type OtType = otMessageQueueInfo
Original OpenThread Type.
Source§fn as_ot_ptr(&self) -> *const Self::OtType
fn as_ot_ptr(&self) -> *const Self::OtType
Returns a pointer to the underlying
Self::OtType instance.Source§fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
fn as_ot_mut_ptr(&mut self) -> *mut Self::OtType
Returns a mutable pointer to the underlying
Self::OtType instance.Source§unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
unsafe fn ref_from_ot_ptr<'a>(ptr: *const Self::OtType) -> Option<&'a Self>
Creates a reference from a pointer to an
Self::OtType. Read moreSource§unsafe fn mut_from_ot_mut_ptr<'a>(
ptr: *mut Self::OtType,
) -> Option<&'a mut Self>
unsafe fn mut_from_ot_mut_ptr<'a>( ptr: *mut Self::OtType, ) -> Option<&'a mut Self>
Creates a mut reference from a mut pointer to an
Self::OtType. Read moreSource§fn as_ot_ref(&self) -> &Self::OtType
fn as_ot_ref(&self) -> &Self::OtType
Returns a reference to the original OpenThread type
Self::OtType.Source§fn as_ot_mut(&mut self) -> &mut Self::OtType
fn as_ot_mut(&mut self) -> &mut Self::OtType
Returns a mutable reference to the original OpenThread type
Self::OtType.Source§fn ref_from_ot_ref(x: &Self::OtType) -> &Self
fn ref_from_ot_ref(x: &Self::OtType) -> &Self
Casts a reference to the original OpenThread type to a reference to
Self.Source§impl Transparent for MessageQueueInfo
impl Transparent for MessageQueueInfo
impl Copy for MessageQueueInfo
Auto Trait Implementations§
impl Freeze for MessageQueueInfo
impl RefUnwindSafe for MessageQueueInfo
impl Send for MessageQueueInfo
impl Sync for MessageQueueInfo
impl Unpin for MessageQueueInfo
impl UnsafeUnpin for MessageQueueInfo
impl UnwindSafe for MessageQueueInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]