Enum pliantdb_local::core::networking::Error[][src]

pub enum Error {
    InvalidDatabaseName(String),
    DatabaseNotFound(String),
    DatabaseNameAlreadyTaken(String),
    UnexpectedResponse(String),
    Disconnected,
    SchemaMismatch {
        database_name: String,
        schema: Id,
        stored_schema: Id,
    },
    SchemaAlreadyRegistered(Id),
    SchemaNotRegistered(Id),
}

A networking error.

Variants

InvalidDatabaseName(String)

An invalid database name was specified. See ServerConnection::create_database() for database name requirements.

DatabaseNotFound(String)

The database name given was not found.

DatabaseNameAlreadyTaken(String)

The database name already exists.

UnexpectedResponse(String)

The server responded with a message that wasn’t expected for the request sent.

Disconnected

The connection was interrupted.

SchemaMismatch

The database named database_name was created with a different schema (stored_schema) than provided (schema).

Fields of SchemaMismatch

database_name: String

The name of the database being accessed.

schema: Id

The schema provided for the database.

stored_schema: Id

The schema stored for the database.

SchemaAlreadyRegistered(Id)

The schema::Id returned has already been registered with this server.

SchemaNotRegistered(Id)

The schema::Id requested was not registered with this server.

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl<'de> Deserialize<'de> for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl Serialize for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,