pub enum ServiceExtensionError {
Unknown {
name: String,
registered: Vec<String>,
},
InvalidParams(String),
Failed(String),
}Expand description
Why a call has no answer: the errors Dart’s ServiceExtensionResponse.error reports.
Variants§
Unknown
No extension of that name is registered; registered names those that are, so a client
can tell what this app serves.
InvalidParams(String)
The parameters do not fit the extension: Dart’s invalidParams.
Failed(String)
The extension failed while answering: Dart’s extensionError.
Trait Implementations§
Source§impl Clone for ServiceExtensionError
impl Clone for ServiceExtensionError
Source§impl Debug for ServiceExtensionError
impl Debug for ServiceExtensionError
Source§impl Display for ServiceExtensionError
impl Display for ServiceExtensionError
impl Eq for ServiceExtensionError
Source§impl Error for ServiceExtensionError
impl Error for ServiceExtensionError
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 PartialEq for ServiceExtensionError
impl PartialEq for ServiceExtensionError
impl StructuralPartialEq for ServiceExtensionError
Auto Trait Implementations§
impl Forget for ServiceExtensionError
impl Freeze for ServiceExtensionError
impl Move for ServiceExtensionError
impl RefUnwindSafe for ServiceExtensionError
impl Send for ServiceExtensionErrorwhere
RawVecInner: Send,
impl Sync for ServiceExtensionErrorwhere
RawVecInner: Sync,
impl Unpin for ServiceExtensionError
impl UnsafeUnpin for ServiceExtensionErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for ServiceExtensionErrorwhere
RawVecInner: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.