#[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: u32
The buffer identifier informed in the TxBuffer
that originated this
TxResult
.
status: i32
The result status to report.
Error results map to their equivalents in
[fuchsia.hardware.network/TxReturnFlags
].
ZX_OK
if the frame was sent successfully.ZX_ERR_NOT_SUPPORTED
if any of the frame’s flags are not supported.ZX_ERR_NO_RESOURCES
if the transmit failed to allocate space in its output queue for the frame.ZX_ERR_UNAVAILABLE
if the device is offline (or went offline before getting a confirmation that the frame was sent) or stopped.ZX_ERR_INTERNAL
or any other unlisted errors will be reported as a generic [fuchsia.hardware.network/TxReturnFlags.TX_RET_ERROR
].
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<TxResult, D> for TxResult
impl<D: ResourceDialect> Decode<TxResult, D> for TxResult
Source§impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<i32, D>> Encode<TxResult, D> for (T0, T1)
impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<i32, D>> Encode<TxResult, D> for (T0, T1)
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
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§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§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