pub enum ServerError {
Show 33 variants
CreateDir(PathBuf),
WriteFile(String),
ReadVersion,
ConnectToDatabase(Error),
CreateDatabase(Error),
QueryDatabase(Error),
UnknownSqliteError(Error),
BridgeApi(Error),
MiniflareCommandError(Error),
MiniflareError(String),
SchemaParserError(Error),
SchemaParserResultRead(Error),
SchemaParserResultJson(Error),
SchemaRegistryWrite(Error),
CreateTemporaryFile(Error),
CreateResolverArtifactFile(Error),
ExtractResolverWrapperWorkerContents(String),
ParseSchema(String),
ResolverDoesNotExist(PathBuf),
ResolverPackageManagerCommandError(JavaScriptPackageManager, Error),
ResolverPackageManagerError(JavaScriptPackageManager, String),
ResolverBuild(String, String),
ProjectPath,
CachePath,
CreateCacheDir,
CreateDatabaseDir(Error),
ReadDatabaseDir(Error),
AvailablePort,
SpawnedTaskPanic(JoinError),
NodeInPath,
OutdatedNode(String, String),
CheckNodeVersion,
FileWatcher(Error),
}
Variants§
CreateDir(PathBuf)
returned if the current directory path cannot be read
WriteFile(String)
returned if any of the embedded worker files cannot be written to disk
ReadVersion
returned if the version of the existing worker files cannot be read
ConnectToDatabase(Error)
returned if a connection to the sqlite database could not be made
CreateDatabase(Error)
returned if an sqlite database file cannot be created
QueryDatabase(Error)
returned if an sqlite query returns an error
UnknownSqliteError(Error)
returned if sqlx returns an unknown error
BridgeApi(Error)
returned if the sqlite bridge cannot be started
MiniflareCommandError(Error)
returned if the miniflare command returns an error
MiniflareError(String)
returned if the miniflare command exits unsuccessfully
SchemaParserError(Error)
returned if the schema parser command returns an error
SchemaParserResultRead(Error)
returned if reading the parser result fails
SchemaParserResultJson(Error)
returned if the schema parser result is invalid JSON
SchemaRegistryWrite(Error)
returned if writing the schema registry fails
CreateTemporaryFile(Error)
returned if tempfile::NamedTempFile::new()
fails.
CreateResolverArtifactFile(Error)
returned if a write to a resolver artifact file fails
ExtractResolverWrapperWorkerContents(String)
returned if the schema parser command exits unsuccessfully
ParseSchema(String)
returned if the schema parser command exits unsuccessfully
ResolverDoesNotExist(PathBuf)
ResolverPackageManagerCommandError(JavaScriptPackageManager, Error)
returned if any of the npm commands ran during resolver build exits unsuccessfully
ResolverPackageManagerError(JavaScriptPackageManager, String)
returned if any of the npm commands ran during resolver build exits unsuccessfully
ResolverBuild(String, String)
returned if any of the npm commands ran during resolver build exits unsuccessfully
ProjectPath
returned if the user project path is not valid utf-8
CachePath
returned if the user cache path is not valid utf-8
CreateCacheDir
returned if the .grafbase
directory cannot be created
CreateDatabaseDir(Error)
returned if the .grafbase/database
directory cannot be created
ReadDatabaseDir(Error)
returned if the .grafbase/database
directory cannot be read
AvailablePort
returned if an available port cannot be found for the bridge server
SpawnedTaskPanic(JoinError)
returned if a spawned task panics
NodeInPath
returned if node is not in the user $PATH
OutdatedNode(String, String)
returned if the installed version of node is unsupported
CheckNodeVersion
returned if the installed version of node could not be retreived
FileWatcher(Error)
returned if a file watcher could not be initialized or was stopped due to an error
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
impl Error for ServerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for ServerError
impl From<Error> for ServerError
Source§fn from(source: HyperError) -> Self
fn from(source: HyperError) -> Self
Source§impl From<Error> for ServerError
impl From<Error> for ServerError
Source§fn from(source: NotifyError) -> Self
fn from(source: NotifyError) -> Self
Source§impl From<Error> for ServerError
impl From<Error> for ServerError
Source§impl From<JoinError> for ServerError
impl From<JoinError> for ServerError
Source§impl IntoResponse for ServerError
impl IntoResponse for ServerError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Auto Trait Implementations§
impl Freeze for ServerError
impl !RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl !UnwindSafe for ServerError
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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