#[repr(C)]pub struct TxResult {
pub id: u32,
pub status: i32,
}Expand description
The result of a tx operation, reported to [NetworkDeviceIfc] through
[NetworkDeviceIfc.CompleteTx].
Fields§
§id: u32The buffer identifier informed in the TxBuffer that originated this
TxResult.
status: i32The result status to report.
Error results map to their equivalents in
[fuchsia.hardware.network/TxReturnFlags].
ZX_OKif the frame was sent successfully.ZX_ERR_NOT_SUPPORTEDif any of the frame’s flags are not supported.ZX_ERR_NO_RESOURCESif the transmit failed to allocate space in its output queue for the frame.ZX_ERR_UNAVAILABLEif the device is offline (or went offline before getting a confirmation that the frame was sent) or stopped.ZX_ERR_INTERNALor any other unlisted errors will be reported as a generic [fuchsia.hardware.network/TxReturnFlags.TX_RET_ERROR].
Trait Implementations§
Source§impl<D> Decode<TxResult, D> for TxResultwhere
D: ResourceDialect,
impl<D> Decode<TxResult, D> for TxResultwhere
D: ResourceDialect,
Source§impl Ord for TxResult
impl Ord for TxResult
Source§impl PartialOrd for TxResult
impl PartialOrd for TxResult
Source§impl TypeMarker for TxResult
impl TypeMarker for TxResult
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for TxResult
impl ValueTypeMarker for TxResult
Source§type Borrowed<'a> = &'a TxResult
type Borrowed<'a> = &'a TxResult
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<TxResult as TypeMarker>::Owned,
) -> <TxResult as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<TxResult as TypeMarker>::Owned, ) -> <TxResult as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Copy for TxResult
impl Eq for TxResult
impl Persistable for TxResult
impl StructuralPartialEq for TxResult
Auto Trait Implementations§
impl Freeze for TxResult
impl RefUnwindSafe for TxResult
impl Send for TxResult
impl Sync for TxResult
impl Unpin for TxResult
impl UnwindSafe for TxResult
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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