pub fn to_grpc(&self) -> rpc::Child {
        rpc::Child {
            uri: self.name.clone(),
            state: rpc::ChildState::from(self.state()) as i32,
            rebuild_progress: self.get_rebuild_progress(),
        }
    }
/// Convert nexus child object to grpc representation.
///
/// We cannot use From trait because it is not value to value conversion.
/// All we have is a reference to a child.
Convert nexus child object to grpc representation.
We cannot use From trait because it is not value to value conversion.
All we have is a reference to a child.
Convert nexus child object to grpc representation . We cannot use From trait because it is not value to value conversion . All we have is a reference to a child .
pub fn to_grpc(&self) -> rpc::Child {
        rpc::Child {
            uri: self.name.clone(),
            state: rpc::ChildState::from(self.state()) as i32,
            rebuild_progress: self.get_rebuild_progress(),
        }
    }
pub fn to_grpc ( & self ) -> rpc :: Child { rpc :: Child { uri : self . name . clone ( ) , state : rpc :: ChildState :: from ( self . state ( ) ) as i32 , rebuild_progress : self . get_rebuild_progress ( ) , } }
Convert nexus child object to grpc representation.
Convert nexus child object to grpc representation .
&self