Enum bonsaidb_core::custom_api::Infallible
source · [−]pub enum Infallible {}Expand description
An Error type that can be used in within a CustomApi definition.
The reason std::convert::Infallible can’t be used is because CustomApi
errors must be able to be serialized across a network connection. While a
value will never be present when this is Infallible, the associated type
still must be declared as Serializable.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Infallible
impl Send for Infallible
impl Sync for Infallible
impl Unpin for Infallible
impl UnwindSafe for Infallible
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more