pub enum OciError {
RepoNotFound {
message: String,
},
InvalidHandle {
handle: u64,
},
NoSuchImage {
image: String,
},
InternalError {
message: String,
},
}Expand description
Errors that may be returned by the org.composefs.Oci interface.
Variants§
RepoNotFound
The repository could not be found or opened at the configured path.
InvalidHandle
The given handle does not refer to an open repository.
NoSuchImage
The named OCI image/reference does not exist.
InternalError
An unexpected internal error occurred while servicing the request.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OciError
impl<'de> Deserialize<'de> for OciError
Source§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
Source§impl<'__ser> From<OciError> for __CfsctlServiceReplyError<'__ser>
impl<'__ser> From<OciError> for __CfsctlServiceReplyError<'__ser>
Auto Trait Implementations§
impl Freeze for OciError
impl RefUnwindSafe for OciError
impl Send for OciError
impl Sync for OciError
impl Unpin for OciError
impl UnsafeUnpin for OciError
impl UnwindSafe for OciError
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
Mutably borrows from an owned value. Read more
§impl<S> CanonJsonSerialize for Swhere
S: Serialize,
impl<S> CanonJsonSerialize for Swhere
S: Serialize,
§fn to_canon_json_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn to_canon_json_writer<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Serialize the given data structure as JSON into the I/O stream.
§fn to_canon_json_vec(&self) -> Result<Vec<u8>, Error>
fn to_canon_json_vec(&self) -> Result<Vec<u8>, Error>
Serialize the given data structure as a JSON byte vector.
§fn to_canon_json_string(&self) -> Result<String, Error>
fn to_canon_json_string(&self) -> Result<String, Error>
Serialize the given data structure as a String.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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