pub struct PingHistoryMutex<const N: usize>(Mutex<PingHistory<N>>);
Available on crate feature
ping
only.Tuple Fields§
§0: Mutex<PingHistory<N>>
Implementations§
Source§impl<const N: usize> PingHistoryMutex<N>
impl<const N: usize> PingHistoryMutex<N>
pub const fn new_any_size() -> Self
Sourcepub fn register(&'static self, callback_slot: &'static mut Slot<&'static Self>)
pub fn register(&'static self, callback_slot: &'static mut Slot<&'static Self>)
Set up a hook for receiving ICMP messages.
It requires a ’static Self to ease GNRC registrations, and GNRC callback slot that contains
the memory needed for handling the registration. Note that the slot can be crated through a
static_cell::StaticCell
initialized with SLOT.init(Default::default())
, and by its own
construction is previously unused. (The static mutable reference is consumed in this
function).
Source§impl PingHistoryMutex<DEFAULT_SIZE>
impl PingHistoryMutex<DEFAULT_SIZE>
Trait Implementations§
Source§impl<const N: usize> Callback for &'static PingHistoryMutex<N>
impl<const N: usize> Callback for &'static PingHistoryMutex<N>
Source§impl<const N: usize> TypeRenderable for &PingHistoryMutex<N>
impl<const N: usize> TypeRenderable for &PingHistoryMutex<N>
Source§type Get = PingHistory<N>
type Get = PingHistory<N>
Output type of the [get()] method, serialized into the response payload.
Source§type Post = ()
type Post = ()
Input type of the [post()] method, deserialized from the request payload. Read more
fn get(&mut self) -> Result<Self::Get, u8>
fn delete(&mut self) -> u8
fn post(&mut self, _representation: &Self::Post) -> u8
fn put(&mut self, _representation: &Self::Put) -> u8
Auto Trait Implementations§
impl<const N: usize> !Freeze for PingHistoryMutex<N>
impl<const N: usize> !RefUnwindSafe for PingHistoryMutex<N>
impl<const N: usize> Send for PingHistoryMutex<N>
impl<const N: usize> Sync for PingHistoryMutex<N>
impl<const N: usize> Unpin for PingHistoryMutex<N>
impl<const N: usize> UnwindSafe for PingHistoryMutex<N>
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> IntoSwitch for T
impl<T> IntoSwitch for T
Source§fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
Source§fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.