Enum dpdu_rust::PduQueueMode
source · [−]#[repr(C)]
pub enum PduQueueMode {
Unlimited,
Limited,
Circular,
}
Expand description
IOCTL queue mode
Variants
Unlimited
Attempt to allocate memory for every event coming in to the receive queue. This queue size can keep growing until the API runs out of allocation memory
Limited
Attempt to allocate a fixed buffer size for events coming into the receive queue. Events are discarded from the receive queue if the buffer is full
Circular
Attempt to allocate a fixed buffer size for events coming into the receive queue. Events overwrite stored events if the buffer is full (Like a circular buffer)
Trait Implementations
sourceimpl Clone for PduQueueMode
impl Clone for PduQueueMode
sourcefn clone(&self) -> PduQueueMode
fn clone(&self) -> PduQueueMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PduQueueMode
impl Debug for PduQueueMode
sourceimpl Ord for PduQueueMode
impl Ord for PduQueueMode
sourceimpl PartialEq<PduQueueMode> for PduQueueMode
impl PartialEq<PduQueueMode> for PduQueueMode
sourceimpl PartialOrd<PduQueueMode> for PduQueueMode
impl PartialOrd<PduQueueMode> for PduQueueMode
sourcefn partial_cmp(&self, other: &PduQueueMode) -> Option<Ordering>
fn partial_cmp(&self, other: &PduQueueMode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for PduQueueMode
impl Eq for PduQueueMode
impl StructuralEq for PduQueueMode
impl StructuralPartialEq for PduQueueMode
Auto Trait Implementations
impl RefUnwindSafe for PduQueueMode
impl Send for PduQueueMode
impl Sync for PduQueueMode
impl Unpin for PduQueueMode
impl UnwindSafe for PduQueueMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more