Enum veilid_core::VeilidAPIError
source · pub enum VeilidAPIError {
Show 14 variants
NotInitialized,
AlreadyInitialized,
Timeout,
TryAgain {
message: String,
},
Shutdown,
InvalidTarget {
message: String,
},
NoConnection {
message: String,
},
KeyNotFound {
key: TypedKey,
},
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
Internal
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: TypedKey) -> 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 copy 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)>
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_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be 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§fn eq(&self, other: &VeilidAPIError) -> bool
fn eq(&self, other: &VeilidAPIError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VeilidAPIError
impl PartialOrd for VeilidAPIError
source§fn partial_cmp(&self, other: &VeilidAPIError) -> Option<Ordering>
fn partial_cmp(&self, other: &VeilidAPIError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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