pub enum IpcRequest {
Ping,
Status,
Fetch {
repo: String,
},
Push {
repo: String,
branch: String,
commit: String,
},
}Expand description
Requests sent from the CLI tool to the Daemon via the local IPC pipe.
Variants§
Ping
Ping the daemon to check connectivity.
Status
Request the current status of the daemon.
Fetch
Instruct the daemon to fetch updates for a specific repository.
Push
Instruct the daemon to announce a new push for a repository.
Trait Implementations§
Source§impl Clone for IpcRequest
impl Clone for IpcRequest
Source§fn clone(&self) -> IpcRequest
fn clone(&self) -> IpcRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IpcRequest
impl Debug for IpcRequest
Source§impl<'de> Deserialize<'de> for IpcRequest
impl<'de> Deserialize<'de> for IpcRequest
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
Auto Trait Implementations§
impl Freeze for IpcRequest
impl RefUnwindSafe for IpcRequest
impl Send for IpcRequest
impl Sync for IpcRequest
impl Unpin for IpcRequest
impl UnwindSafe for IpcRequest
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