pub enum SpeculativeStateError {
Null,
BadSequence,
NotQuiescent,
SizeChanged {
expected: usize,
actual: usize,
},
BufferTooSmall,
Unavailable,
Invalid,
Overflow,
Exception,
Excessive {
size: usize,
maximum: usize,
},
Unknown(u32),
}Expand description
Failure while capturing or restoring versioned speculative state.
Variants§
Null
A required native session or output pointer was null.
BadSequence
The sequence id is outside the configured session range.
NotQuiescent
A draft proposal has not yet been completed with accept.
SizeChanged
Native state changed size between the size and copy calls.
Fields
BufferTooSmall
Native reported that the supplied buffer was too small without a size.
The active native implementation did not expose complete state.
Invalid
The supplied state failed its exact version/configuration checks.
Overflow
Native state size arithmetic overflowed.
Exception
A C++ exception was contained by the speculative-state shim.
Excessive
State exceeded the safe allocation/input bound.
Unknown(u32)
Native returned a status unknown to this binding revision.
Trait Implementations§
Source§impl Clone for SpeculativeStateError
impl Clone for SpeculativeStateError
Source§fn clone(&self) -> SpeculativeStateError
fn clone(&self) -> SpeculativeStateError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpeculativeStateError
impl Debug for SpeculativeStateError
Source§impl Display for SpeculativeStateError
impl Display for SpeculativeStateError
impl Eq for SpeculativeStateError
Source§impl Error for SpeculativeStateError
impl Error for SpeculativeStateError
1.30.0 · 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<SpeculativeStateError> for Eagle3SessionError
impl From<SpeculativeStateError> for Eagle3SessionError
Source§fn from(source: SpeculativeStateError) -> Self
fn from(source: SpeculativeStateError) -> Self
Converts to this type from the input type.
Source§impl From<SpeculativeStateError> for MtpSessionError
impl From<SpeculativeStateError> for MtpSessionError
Source§fn from(source: SpeculativeStateError) -> Self
fn from(source: SpeculativeStateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SpeculativeStateError
impl PartialEq for SpeculativeStateError
impl StructuralPartialEq for SpeculativeStateError
Auto Trait Implementations§
impl Freeze for SpeculativeStateError
impl RefUnwindSafe for SpeculativeStateError
impl Send for SpeculativeStateError
impl Sync for SpeculativeStateError
impl Unpin for SpeculativeStateError
impl UnsafeUnpin for SpeculativeStateError
impl UnwindSafe for SpeculativeStateError
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