pub enum OutgoingPacketType<'a> {
InBandNoCompletion,
InBandWithCompletion,
Completion,
GpaDirect(&'a [PagedRange<'a>]),
TransferPages(u16, &'a [TransferPageRange]),
}
Expand description
The outgoing packet type variants.
Variants§
InBandNoCompletion
A non-transactional data packet.
InBandWithCompletion
A transactional data packet.
Completion
A completion packet.
GpaDirect(&'a [PagedRange<'a>])
A GPA direct packet, which can reference memory outside the ring by address.
Not supported on the host side of the ring.
TransferPages(u16, &'a [TransferPageRange])
A transfer page packet, which can reference memory outside the ring by a buffer ID and a set of offsets into some pre-established buffer (typically a GPADL).
Used by networking. Should not be used in new devices–just embed the buffer offsets in the device-specific packet payload.
Trait Implementations§
Source§impl<'a> Clone for OutgoingPacketType<'a>
impl<'a> Clone for OutgoingPacketType<'a>
Source§fn clone(&self) -> OutgoingPacketType<'a>
fn clone(&self) -> OutgoingPacketType<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for OutgoingPacketType<'a>
impl<'a> Debug for OutgoingPacketType<'a>
impl<'a> Copy for OutgoingPacketType<'a>
Auto Trait Implementations§
impl<'a> Freeze for OutgoingPacketType<'a>
impl<'a> RefUnwindSafe for OutgoingPacketType<'a>
impl<'a> Send for OutgoingPacketType<'a>
impl<'a> Sync for OutgoingPacketType<'a>
impl<'a> Unpin for OutgoingPacketType<'a>
impl<'a> UnwindSafe for OutgoingPacketType<'a>
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