pub enum SwarmCommands {
Register {
agent_id: String,
},
List,
LeaseAcquire {
agent_id: String,
path: String,
duration: u64,
},
LeaseRelease {
agent_id: String,
path: String,
},
LeaseList,
}Variants§
Trait Implementations§
Source§impl Clone for SwarmCommands
impl Clone for SwarmCommands
Source§fn clone(&self) -> SwarmCommands
fn clone(&self) -> SwarmCommands
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SwarmCommands
impl RefUnwindSafe for SwarmCommands
impl Send for SwarmCommands
impl Sync for SwarmCommands
impl Unpin for SwarmCommands
impl UnsafeUnpin for SwarmCommands
impl UnwindSafe for SwarmCommands
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