pub enum VeilidAPIError {
Show 14 variants
NotInitialized,
AlreadyInitialized,
Timeout,
TryAgain {
message: String,
},
Shutdown,
InvalidTarget {
message: String,
},
NoConnection {
message: String,
},
KeyNotFound {
key: OpaqueRecordKey,
},
Internal {
message: String,
},
Unimplemented {
message: String,
},
ParseError {
message: String,
value: String,
},
InvalidArgument {
context: String,
argument: String,
value: String,
},
MissingArgument {
context: String,
argument: String,
},
Generic {
message: String,
},
}Variants§
NotInitialized
AlreadyInitialized
Timeout
TryAgain
Shutdown
InvalidTarget
NoConnection
KeyNotFound
Fields
§
key: OpaqueRecordKeyInternal
Unimplemented
ParseError
InvalidArgument
MissingArgument
Generic
Implementations§
Source§impl VeilidAPIError
impl VeilidAPIError
pub fn not_initialized() -> Self
pub fn already_initialized() -> Self
pub fn timeout() -> Self
pub fn try_again<T: ToString>(msg: T) -> Self
pub fn shutdown() -> Self
pub fn invalid_target<T: ToString>(msg: T) -> Self
pub fn no_connection<T: ToString>(msg: T) -> Self
pub fn key_not_found(key: OpaqueRecordKey) -> Self
pub fn internal<T: ToString>(msg: T) -> Self
pub fn unimplemented<T: ToString>(msg: T) -> Self
pub fn parse_error<T: ToString, S: ToString>(msg: T, value: S) -> Self
pub fn invalid_argument<T: ToString, S: ToString, R: ToString>( context: T, argument: S, value: R, ) -> Self
pub fn missing_argument<T: ToString, S: ToString>( context: T, argument: S, ) -> Self
pub fn generic<T: ToString>(msg: T) -> Self
Trait Implementations§
Source§impl Clone for VeilidAPIError
impl Clone for VeilidAPIError
Source§fn clone(&self) -> VeilidAPIError
fn clone(&self) -> VeilidAPIError
Returns a duplicate of the value. Read more
1.0.0 · 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 VeilidAPIError
impl Debug for VeilidAPIError
Source§impl<'de> Deserialize<'de> for VeilidAPIError
impl<'de> Deserialize<'de> for VeilidAPIError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VeilidAPIError
impl Display for VeilidAPIError
Source§impl Error for VeilidAPIError
impl Error for VeilidAPIError
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<Error> for VeilidAPIError
impl From<Error> for VeilidAPIError
Source§impl JsonSchema for VeilidAPIError
impl JsonSchema for VeilidAPIError
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for VeilidAPIError
impl Ord for VeilidAPIError
Source§fn cmp(&self, other: &VeilidAPIError) -> Ordering
fn cmp(&self, other: &VeilidAPIError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VeilidAPIError
impl PartialEq for VeilidAPIError
Source§impl PartialOrd for VeilidAPIError
impl PartialOrd for VeilidAPIError
Source§impl Serialize for VeilidAPIError
impl Serialize for VeilidAPIError
impl Eq for VeilidAPIError
impl StructuralPartialEq for VeilidAPIError
Auto Trait Implementations§
impl !Freeze for VeilidAPIError
impl RefUnwindSafe for VeilidAPIError
impl Send for VeilidAPIError
impl Sync for VeilidAPIError
impl Unpin for VeilidAPIError
impl UnwindSafe for VeilidAPIError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CmpAssign for Twhere
T: Ord,
impl<T> CmpAssign for Twhere
T: Ord,
fn min_assign(&mut self, other: T)
fn max_assign(&mut self, other: T)
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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§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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more