Enum pliantdb_core::networking::Response [−][src]
pub enum Response<T> {
Ok,
Server(ServerResponse),
Database(DatabaseResponse),
Api(T),
Error(Error),
}Expand description
A response from a server.
Variants
A request succeded but provided no output.
Server(ServerResponse)A response to a ServerRequest.
Database(DatabaseResponse)A response to a DatabaseRequest.
A response to an Api request.
Error(Error)An error occurred processing a request.
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<T> RefUnwindSafe for Response<T> where
T: RefUnwindSafe, impl<T> UnwindSafe for Response<T> where
T: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self