fn do_takeover(&self) -> ApiResponse {
        let d = self.daemon.as_ref();
        d.trigger_takeover()
            .map(|_| ApiResponsePayload::Empty)
            .map_err(|e| ApiError::DaemonAbnormal(e.into()))
    }
/// External supervisor wants this instance to fetch `/dev/fuse` fd. Before
/// invoking this method, supervisor should already listens on a Unix socket and
/// waits for connection from this instance. Then supervisor should send the *fd*
/// back. Note, the http response does not mean this process already finishes Takeover
/// procedure. Supervisor has to continuously query the state of Nydusd until it gets
/// to *RUNNING*, which means new Nydusd has successfully served as a fuse server.
External supervisor wants this instance to fetch `/dev/fuse` fd. Before
invoking this method, supervisor should already listens on a Unix socket and
waits for connection from this instance. Then supervisor should send the *fd
back. Note, the http response does not mean this process already finishes Takeover
procedure. Supervisor has to continuously query the state of Nydusd until it gets
to *RUNNING*, which means new Nydusd has successfully served as a fuse server.
External supervisor wants this instance to fetch ` / dev / fuse ` fd . Before invoking this method supervisor should already listens on a Unix socket and waits for connection from this instance . Then supervisor should send the * fd back . Note the http response does not mean this process already finishes Takeover procedure . Supervisor has to continuously query the state of Nydusd until it gets to * RUNNING * which means new Nydusd has successfully served as a fuse server .
fn do_takeover(&self) -> ApiResponse {
        let d = self.daemon.as_ref();
        d.trigger_takeover()
            .map(|_| ApiResponsePayload::Empty)
            .map_err(|e| ApiError::DaemonAbnormal(e.into()))
    }
fn do_takeover ( & self ) -> ApiResponse { let d = self . daemon . as_ref ( ) ; d . trigger_takeover ( ) . map ( | _ | ApiResponsePayload :: Empty ) . map_err ( | e | ApiError :: DaemonAbnormal ( e . into ( ) ) ) }
External supervisor wants this instance to fetch `/dev/fuse` fd.
External supervisor wants this instance to fetch ` / dev / fuse ` fd .
&self
&self