Enum ye::YePluginResultValue [−][src]
Wrapper enum for a plugins return value
Variants
Plugin does not implement this function. This is returned by default as the
YePlugin
trait offers a default implementation for every function (which returns NotImplemented
).
So if a function is not explicitly implemented by a plugin itself, a call to this function
will return NotImplemented
.
Plugin implements function but is not “interested” in fulfilling function call.
This mostly signs that the responding plugin does not resolve/handle given method,
e.g. a plugin may resolve dids with prefix did:example123
and not dids with
prefix did:example456
.
Plugin handled request and returned a value of type T
. Note that Success
values can be
unwrapped. So if you know, that a plugin implements a function and handles requests of your
method, you can call
unwrap
on it
to fetch the underlying value of type T
.
Implementations
impl<T> YePluginResultValue<T>
[src]
pub fn unwrap(self) -> T
[src]
Unwraps inner value like:
Success(T)
unwraps successfully toT
NotImplemented
andIgnored
unwrap to errors
Auto Trait Implementations
impl<T> RefUnwindSafe for YePluginResultValue<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for YePluginResultValue<T> where
T: Send,
T: Send,
impl<T> Sync for YePluginResultValue<T> where
T: Sync,
T: Sync,
impl<T> Unpin for YePluginResultValue<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for YePluginResultValue<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,