fn request_job(&mut self) -> Result<(), String> {
        match self.stream {
            Some(ref mut stream) => {
                trace!("{} - Requesting Job Template", self.id);
                return self.protocol.send_request(
                    stream,
                    "getjobtemplate".to_string(),
                    None,
                    Some(self.id.clone()),
                );
            }
            None => Err("No upstream connection".to_string()),
        }
    }
/// Request a new job template from the upstream Grin Stratum server
Request a new job template from the upstream Grin Stratum server
Request a new job template from the upstream Grin Stratum server
fn request_job(&mut self) -> Result<(), String> {
        match self.stream {
            Some(ref mut stream) => {
                trace!("{} - Requesting Job Template", self.id);
                return self.protocol.send_request(
                    stream,
                    "getjobtemplate".to_string(),
                    None,
                    Some(self.id.clone()),
                );
            }
            None => Err("No upstream connection".to_string()),
        }
    }
fn request_job ( & mut self ) -> Result < ( ) , String > { match self . stream { Some ( ref mut stream ) => { trace ! ( " " self id ) ; return self . protocol . send_request ( stream , " " . to_string ( ) , None , Some ( self . id . clone ( ) ) , ) ; } None => Err ( " " . to_string ( ) ) , } }
Request a new job template from the upstream Grin Stratum server
Request a new job template from the upstream Grin Stratum server
&mut self