pub enum RepositoryError {
RepoNotFound {
message: String,
},
InvalidHandle {
handle: u64,
},
InvalidSpec {
message: String,
},
NoSuchRef {
reference: String,
},
InternalError {
message: String,
},
}Expand description
Errors that may be returned by the org.composefs.Repository 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.
InvalidSpec
The request did not specify a valid repository selector.
NoSuchRef
The named image/ref does not exist in the repository.
InternalError
An unexpected internal error occurred while servicing the request.
Trait Implementations§
Source§impl Debug for RepositoryError
impl Debug for RepositoryError
Source§impl<'de> Deserialize<'de> for RepositoryError
impl<'de> Deserialize<'de> for RepositoryError
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<RepositoryError> for __CfsctlServiceReplyError<'__ser>
impl<'__ser> From<RepositoryError> for __CfsctlServiceReplyError<'__ser>
Source§fn from(e: RepositoryError) -> Self
fn from(e: RepositoryError) -> Self
Converts to this type from the input type.
Source§impl ReplyError for RepositoryError
impl ReplyError for RepositoryError
Auto Trait Implementations§
impl Freeze for RepositoryError
impl RefUnwindSafe for RepositoryError
impl Send for RepositoryError
impl Sync for RepositoryError
impl Unpin for RepositoryError
impl UnsafeUnpin for RepositoryError
impl UnwindSafe for RepositoryError
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