Enum cobble_core::error::CobbleError
source · [−]pub enum CobbleError {
Show 15 variants
ChecksumMismatch,
InvalidChecksum(FromHexError),
InvalidVersion(String),
IO(Error),
LibraryNameFormat,
ProcessForking,
IpcError(IpcError),
Profile(ProfileError),
Reqwest(Error),
Serde(Error),
Zip(ZipError),
NbtIoError(NbtIoError),
NbtReprError(NbtReprError),
InvalidNbtValue,
Base64Decode(DecodeError),
}Expand description
An error indicating various failures during operations with instances or minecraft directly.
Variants
ChecksumMismatch
Problem while comparing checksums of files. Occurs mostly when downloading resources.
InvalidChecksum(FromHexError)
A checksum that is provided from an index has an invalid format. Versiondata and the Assetindex provide checksums for resources.
InvalidVersion(String)
A provided version could not be found in the version manifest. Version Manifest
IO(Error)
Standard IO Error. Occurs mostly when downloading resources and when authenticating. Can also occur when creating IPC channel for manually stopping the game process.
LibraryNameFormat
Problem occured while parsing minecraft library name.
Format: <package>:<name>:<version>
ProcessForking
Forking the game process on linux systems failed.
IpcError(IpcError)
Sending or receiving through IPC channel failed.
Profile(ProfileError)
Failed to authenticate while creating a Profile.
Reqwest(Error)
Problem while performing a web request. Web requests are used to get game information and resources.
Serde(Error)
Serializing or deserializing of some data failed.
Zip(ZipError)
Extracting minecraft native libraries failed.
NbtIoError(NbtIoError)
saves or servers only.Reading a NBT file failed.
NbtReprError(NbtReprError)
saves or servers only.Translation of a NBT tag failed.
InvalidNbtValue
saves or servers only.A NBT tag has an invalid value.
Base64Decode(DecodeError)
servers only.Decoding of a base64 string failed.
Trait Implementations
sourceimpl Debug for CobbleError
impl Debug for CobbleError
sourceimpl Display for CobbleError
impl Display for CobbleError
sourceimpl Error for CobbleError
impl Error for CobbleError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DecodeError> for CobbleError
Available on crate feature servers only.
impl From<DecodeError> for CobbleError
servers only.sourcefn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for CobbleError
impl From<Error> for CobbleError
sourceimpl From<Error> for CobbleError
impl From<Error> for CobbleError
sourceimpl From<Error> for CobbleError
impl From<Error> for CobbleError
sourceimpl From<FromHexError> for CobbleError
impl From<FromHexError> for CobbleError
sourcefn from(err: FromHexError) -> Self
fn from(err: FromHexError) -> Self
Converts to this type from the input type.
sourceimpl From<IpcError> for CobbleError
impl From<IpcError> for CobbleError
sourceimpl From<NbtIoError> for CobbleError
Available on crate features saves or servers only.
impl From<NbtIoError> for CobbleError
saves or servers only.sourcefn from(err: NbtIoError) -> Self
fn from(err: NbtIoError) -> Self
Converts to this type from the input type.
sourceimpl From<NbtReprError> for CobbleError
Available on crate features saves or servers only.
impl From<NbtReprError> for CobbleError
saves or servers only.sourcefn from(err: NbtReprError) -> Self
fn from(err: NbtReprError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for CobbleError
impl Send for CobbleError
impl Sync for CobbleError
impl Unpin for CobbleError
impl !UnwindSafe for CobbleError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more