pub enum DeviceJoinTransportError {
Storage(StorageError),
DeviceJoin(DeviceJoinError),
Malformed(Error),
Unsealable(SealError),
BundleMismatch,
MissingSlot {
kind: DeviceJoinTransportKind,
},
NotTransferable(Box<DeviceJoinAction>),
WrongProducer {
kind: DeviceJoinTransportKind,
role: DeviceJoinRole,
},
ArtifactConflict {
kind: DeviceJoinTransportKind,
},
SlotConflict {
kind: DeviceJoinTransportKind,
},
KindMismatch {
kind: DeviceJoinTransportKind,
},
Timeout {
kind: DeviceJoinTransportKind,
producer: DeviceJoinRole,
},
}Expand description
Why a transfer through the transport failed.
Variants§
Storage(StorageError)
DeviceJoin(DeviceJoinError)
Malformed(Error)
Unsealable(SealError)
BundleMismatch
MissingSlot
Fields
§
kind: DeviceJoinTransportKindNotTransferable(Box<DeviceJoinAction>)
The action carries no transferable artifact — the offer travels out of
band, and CompleteJoin/CompleteCleanup/ResumeOperation name local
work rather than a transfer.
WrongProducer
Only one role produces each kind, and this device does not hold it.
ArtifactConflict
The slot already holds a different artifact of this kind. Republishing the same artifact after a crash succeeds; a different one never overwrites what a counterpart may already have read.
Fields
§
kind: DeviceJoinTransportKindSlotConflict
The slot’s stored bytes are not the ones this write produced — a concurrent writer reached it first.
Fields
§
kind: DeviceJoinTransportKindKindMismatch
The unsealed bytes decode as a different kind than the slot they sat in.
Fields
§
kind: DeviceJoinTransportKindTimeout
Trait Implementations§
Source§impl Debug for DeviceJoinTransportError
impl Debug for DeviceJoinTransportError
Source§impl Display for DeviceJoinTransportError
impl Display for DeviceJoinTransportError
Source§impl Error for DeviceJoinTransportError
impl Error for DeviceJoinTransportError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<DeviceJoinError> for DeviceJoinTransportError
impl From<DeviceJoinError> for DeviceJoinTransportError
Source§fn from(source: DeviceJoinError) -> DeviceJoinTransportError
fn from(source: DeviceJoinError) -> DeviceJoinTransportError
Converts to this type from the input type.
Source§impl From<DeviceJoinTransportError> for BootstrapError
impl From<DeviceJoinTransportError> for BootstrapError
Source§fn from(source: DeviceJoinTransportError) -> Self
fn from(source: DeviceJoinTransportError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DeviceJoinTransportError
impl From<Error> for DeviceJoinTransportError
Source§fn from(source: Error) -> DeviceJoinTransportError
fn from(source: Error) -> DeviceJoinTransportError
Converts to this type from the input type.
Source§impl From<SealError> for DeviceJoinTransportError
impl From<SealError> for DeviceJoinTransportError
Source§fn from(source: SealError) -> DeviceJoinTransportError
fn from(source: SealError) -> DeviceJoinTransportError
Converts to this type from the input type.
Source§impl From<StorageError> for DeviceJoinTransportError
impl From<StorageError> for DeviceJoinTransportError
Source§fn from(source: StorageError) -> DeviceJoinTransportError
fn from(source: StorageError) -> DeviceJoinTransportError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeviceJoinTransportError
impl !RefUnwindSafe for DeviceJoinTransportError
impl Send for DeviceJoinTransportError
impl Sync for DeviceJoinTransportError
impl Unpin for DeviceJoinTransportError
impl UnsafeUnpin for DeviceJoinTransportError
impl !UnwindSafe for DeviceJoinTransportError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.