pub enum Command {
Show 14 variants
AnnounceRefs(RepoId, Sender<RefsAt>),
AnnounceInventory,
AddInventory(RepoId, Sender<bool>),
Connect(NodeId, Address, ConnectOptions),
Disconnect(NodeId),
Config(Sender<Config>),
ListenAddrs(Sender<Vec<SocketAddr>>),
Seeds(RepoId, Sender<Seeds>),
Fetch(RepoId, NodeId, Duration, Sender<FetchResult>),
Seed(RepoId, Scope, Sender<bool>),
Unseed(RepoId, Sender<bool>),
Follow(NodeId, Option<Alias>, Sender<bool>),
Unfollow(NodeId, Sender<bool>),
QueryState(Arc<QueryState>, Sender<Result<(), CommandError>>),
}Expand description
Commands sent to the service by the operator.
Variants§
AnnounceRefs(RepoId, Sender<RefsAt>)
Announce repository references for given repository to peers.
AnnounceInventory
Announce local repositories to peers.
AddInventory(RepoId, Sender<bool>)
Add repository to local inventory.
Connect(NodeId, Address, ConnectOptions)
Connect to node with the given address.
Disconnect(NodeId)
Disconnect from node.
Config(Sender<Config>)
Get the node configuration.
ListenAddrs(Sender<Vec<SocketAddr>>)
Get the node’s listen addresses.
Seeds(RepoId, Sender<Seeds>)
Lookup seeds for the given repository in the routing table.
Fetch(RepoId, NodeId, Duration, Sender<FetchResult>)
Fetch the given repository from the network.
Seed(RepoId, Scope, Sender<bool>)
Seed the given repository.
Unseed(RepoId, Sender<bool>)
Unseed the given repository.
Follow(NodeId, Option<Alias>, Sender<bool>)
Follow the given node.
Unfollow(NodeId, Sender<bool>)
Unfollow the given node.
QueryState(Arc<QueryState>, Sender<Result<(), CommandError>>)
Query the internal service state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl !RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl !UnwindSafe for Command
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more