Enum FDomainError
pub enum FDomainError {
Show 13 variants
TargetError(i32),
BadHandleId(BadHandleId),
NewHandleIdOutOfRange(NewHandleIdOutOfRange),
NewHandleIdReused(NewHandleIdReused),
WrongHandleType(WrongHandleType),
StreamingReadInProgress(StreamingReadInProgress),
NoReadInProgress(NoReadInProgress),
WroteToSelf(WroteToSelf),
ClosedDuringRead(ClosedDuringRead),
SignalsUnknown(SignalsUnknown),
RightsUnknown(RightsUnknown),
SocketDispositionUnknown(SocketDispositionUnknown),
SocketTypeUnknown(SocketTypeUnknown),
// some variants omitted
}Variants§
TargetError(i32)
An error produced by interacting with the handle itself.
BadHandleId(BadHandleId)
An invalid handle ID was given.
NewHandleIdOutOfRange(NewHandleIdOutOfRange)
We passed a NewHandleId that contained an ID with a 1 in the most
significant bit.
NewHandleIdReused(NewHandleIdReused)
We passed a NewHandleId that collides with an already-allocated handle.
WrongHandleType(WrongHandleType)
The handle used is not of the right type for the operation requested.
StreamingReadInProgress(StreamingReadInProgress)
Occurs when we try to start streaming reading twice on the same handle, or try to directly read from a handle which we are already streaming reading from.
NoReadInProgress(NoReadInProgress)
We tried to stop streaming reading on a handle we weren’t streaming reads from to begin with.
WroteToSelf(WroteToSelf)
We tried to write a channel into itself.
ClosedDuringRead(ClosedDuringRead)
We received a request to close or transfer a handle while we were waiting to read from it.
SignalsUnknown(SignalsUnknown)
The flexible features of this protocol allowed the client to send us signals that we didn’t actually understand, and we couldn’t proceed safely without knowing what they were. The signals field should contain only the signals that weren’t understood.
RightsUnknown(RightsUnknown)
The flexible features of this protocol allowed the client to send us rights that we didn’t actually understand, and we couldn’t proceed safely without knowing what they were. The rights field should contain only the rights that weren’t understood.
SocketDispositionUnknown(SocketDispositionUnknown)
The client used a socket disposition that the FDomain did not recognize.
SocketTypeUnknown(SocketTypeUnknown)
The client used a socket type that the FDomain did not recognize.
Implementations§
§impl Error
impl Error
pub fn ordinal(&self) -> u64
pub fn unknown_variant_for_testing() -> Error
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl<D> Decode<Error, D> for Errorwhere
D: ResourceDialect,
impl<D> Decode<Error, D> for Errorwhere
D: ResourceDialect,
§impl<D> Encode<Error, D> for &Errorwhere
D: ResourceDialect,
impl<D> Encode<Error, D> for &Errorwhere
D: ResourceDialect,
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(other: FDomainError) -> Self
fn from(other: FDomainError) -> Self
§impl TypeMarker for Error
impl TypeMarker for Error
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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.§impl ValueTypeMarker for Error
impl ValueTypeMarker for Error
§type Borrowed<'a> = &'a Error
type Borrowed<'a> = &'a Error
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read more§fn borrow(
value: &<Error as TypeMarker>::Owned,
) -> <Error as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<Error as TypeMarker>::Owned, ) -> <Error as ValueTypeMarker>::Borrowed<'_>
&Self::Owned to Self::Borrowed.impl Persistable for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]