Skip to content

Commit

Permalink
added missing feature gates
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Aug 22, 2024
1 parent de4509f commit 6aae8cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ impl<UserFaultHook: UserFaultHookProvider> LocalEntityConfig<UserFaultHook> {
}

/// Generic error type for sending a PDU via a message queue.
#[cfg(feature = "std")]
#[derive(Debug, Copy, Clone, PartialEq, Eq, thiserror::Error)]
#[non_exhaustive]
pub enum GenericSendError {
Expand All @@ -516,6 +517,7 @@ pub enum GenericSendError {
QueueFull(Option<u32>),
}

#[cfg(feature = "std")]
pub trait PduSendProvider {
fn send_pdu(
&self,
Expand Down

0 comments on commit 6aae8cb

Please sign in to comment.