pub enum HatChange {
Done(HatRecord),
NotFound,
NameTaken,
Purging,
Invalid(String),
}Expand description
The outcome of Hosts::create_hat and Hosts::update_hat.
Variants§
Done(HatRecord)
NotFound
NameTaken
Another hat of the owner has this name, in any case.
Purging
The hat is frozen for its purge, and cannot become the default for new hosts (plan 9c A2); nothing changed.
Invalid(String)
The request is not acceptable (why); nothing changed.
Trait Implementations§
impl Eq for HatChange
impl StructuralPartialEq for HatChange
Auto Trait Implementations§
impl Freeze for HatChange
impl RefUnwindSafe for HatChange
impl Send for HatChange
impl Sync for HatChange
impl Unpin for HatChange
impl UnsafeUnpin for HatChange
impl UnwindSafe for HatChange
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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