pub struct Hold {
pub token: u64,
pub groups: Vec<GroupId>,
pub reason: String,
pub by: String,
}Expand description
A short lock on groups of the stack: a drag in progress, a batch writing, an agent holding the image. Requests touching a held group are refused with its reason.
Fields§
§token: u64§groups: Vec<GroupId>The groups held (PLACES for places); empty: the whole stack.
reason: String§by: StringWho holds it (user, agent:<name>, a plugin).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Hold
impl<'de> Deserialize<'de> for Hold
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
impl StructuralPartialEq for Hold
Auto Trait Implementations§
impl Freeze for Hold
impl RefUnwindSafe for Hold
impl Send for Hold
impl Sync for Hold
impl Unpin for Hold
impl UnsafeUnpin for Hold
impl UnwindSafe for Hold
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