#[non_exhaustive]pub struct SheepRefusal {
pub name: String,
pub reason: String,
}Expand description
One app a multi-sheep reload could not accept, and why
A staged reload asks the supervisor per app, so an app already reloading
is refused on its own while the rest of the fold goes ahead. One of these
per refused app rides back in Response::Reloading, which is what lets
the client name the app and exit non-zero instead of printing a table
with a row quietly missing from it.
Self::reason is the daemon’s own sentence rather than a code, the
rule SheepApplied::refused takes and for its reason: the class of
refusal is not on the wire, and the message is what tells two of them
apart. Debug is derived; a name and a refusal sentence carry no env,
no path and no argument vector.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe app’s name, as the walk that planned the reload spelled it.
reason: StringWhy the reload was refused, in the daemon’s own words.
Implementations§
Trait Implementations§
Source§impl Clone for SheepRefusal
impl Clone for SheepRefusal
Source§fn clone(&self) -> SheepRefusal
fn clone(&self) -> SheepRefusal
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SheepRefusal
impl Debug for SheepRefusal
Source§impl<'de> Deserialize<'de> for SheepRefusal
impl<'de> Deserialize<'de> for SheepRefusal
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>,
impl Eq for SheepRefusal
Source§impl PartialEq for SheepRefusal
impl PartialEq for SheepRefusal
Source§impl Serialize for SheepRefusal
impl Serialize for SheepRefusal
impl StructuralPartialEq for SheepRefusal
Auto Trait Implementations§
impl Freeze for SheepRefusal
impl RefUnwindSafe for SheepRefusal
impl Send for SheepRefusal
impl Sync for SheepRefusal
impl Unpin for SheepRefusal
impl UnsafeUnpin for SheepRefusal
impl UnwindSafe for SheepRefusal
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.