pub struct Supervisor { /* private fields */ }Implementations§
Source§impl Supervisor
impl Supervisor
pub fn get_peer_ids(&self) -> &[Uuid]
pub fn get_peer(&self, peer_id: Uuid) -> Result<&Peer>
pub fn get_peer_mut(&mut self, peer_id: Uuid) -> Result<&mut Peer>
pub fn set_up_ssh(&self) -> Result<()>
pub fn new(peers: Vec<Peer>) -> Self
pub fn with_key(self, path_to_key: &str) -> Self
pub async fn connect(&mut self, peer_id: Uuid) -> Result<()>
pub async fn connect_all(&mut self) -> Result<()>
pub async fn execute( &mut self, peer_id: Uuid, command: impl Into<Commands>, ) -> Result<Output>
pub async fn run( self, commands_rx: Receiver<Request<Message, Output>>, ) -> Result<()>
Trait Implementations§
Source§impl Debug for Supervisor
impl Debug for Supervisor
Source§impl Default for Supervisor
impl Default for Supervisor
Source§fn default() -> Supervisor
fn default() -> Supervisor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Supervisor
impl RefUnwindSafe for Supervisor
impl Send for Supervisor
impl Sync for Supervisor
impl Unpin for Supervisor
impl UnwindSafe for Supervisor
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